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

// 查询防汛物资分页
export function pagefloodControlMaterials(query) {
  return request({
    url: '/business/floodControlMaterials/page',
    method: 'get',
    params: query
  })
}

// 查询防汛物资列表
export function listfloodControlMaterials(query) {
  return request({
    url: '/business/floodControlMaterials/list',
    method: 'get',
    params: query
  })
}

// 查询防汛物资详细
export function getfloodControlMaterials(id) {
  return request({
    url: '/business/floodControlMaterials/' + id,
    method: 'get'
  })
}

// 新增防汛物资
export function addfloodControlMaterials(data) {
  return request({
    url: '/business/floodControlMaterials/add',
    method: 'post',
    data: data
  })
}

// 修改防汛物资
export function updatefloodControlMaterials(data) {
  return request({
    url: '/business/floodControlMaterials/edit',
    method: 'put',
    data: data
  })
}

// 删除防汛物资
export function delfloodControlMaterials(id) {
  return request({
    url: '/business/floodControlMaterials/' + id,
    method: 'delete'
  })
}