Newer
Older
Nanping_sponge_SJJC / src / api / business / expertDatabase.js
@liyingjing liyingjing on 25 Oct 2023 1 KB 数据检测
import request from '@/utils/request'

// 查询防汛专家分页
export function pageexpertDatabase(query) {
  return request({
    url: '/business/expertDatabase/page',
    method: 'get',
    params: query
  })
}

// 查询防汛专家列表
export function listexpertDatabase(query) {
  return request({
    url: '/business/expertDatabase/list',
    method: 'get',
    params: query
  })
}

// 查询防汛专家详细
export function getexpertDatabase(id) {
  return request({
    url: '/business/expertDatabase/' + id,
    method: 'get'
  })
}

// 新增防汛专家
export function addexpertDatabase(data) {
  return request({
    url: '/business/expertDatabase/add',
    method: 'post',
    data: data
  })
}

// 修改防汛专家
export function updateexpertDatabase(data) {
  return request({
    url: '/business/expertDatabase/edit',
    method: 'put',
    data: data
  })
}

// 删除防汛专家
export function delexpertDatabase(id) {
  return request({
    url: '/business/expertDatabase/' + id,
    method: 'delete'
  })
}