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

// 查询防汛信息分页
export function pagefloodControlInfo(query) {
  return request({
    url: '/business/floodControlInfo/page',
    method: 'get',
    params: query
  })
}

// 查询防汛信息列表
export function listfloodControlInfo(query) {
  return request({
    url: '/business/floodControlInfo/list',
    method: 'get',
    params: query
  })
}

// 查询防汛信息详细
export function getfloodControlInfo(id) {
  return request({
    url: '/business/floodControlInfo/' + id,
    method: 'get'
  })
}

// 新增防汛信息
export function addfloodControlInfo(data) {
  return request({
    url: '/business/floodControlInfo/add',
    method: 'post',
    data: data
  })
}

// 修改防汛信息
export function updatefloodControlInfo(data) {
  return request({
    url: '/business/floodControlInfo/edit',
    method: 'put',
    data: data
  })
}

// 删除防汛信息
export function delfloodControlInfo(id) {
  return request({
    url: '/business/floodControlInfo/' + id,
    method: 'delete'
  })
}