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

// 查询防汛应急仓库分页
export function pageemergencyWarehouse(query) {
  return request({
    url: '/business/emergencyWarehouse/page',
    method: 'get',
    params: query
  })
}

// 查询防汛应急仓库列表
export function listemergencyWarehouse(query) {
  return request({
    url: '/business/emergencyWarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询防汛应急仓库详细
export function getemergencyWarehouse(id) {
  return request({
    url: '/business/emergencyWarehouse/' + id,
    method: 'get'
  })
}

// 新增防汛应急仓库
export function addemergencyWarehouse(data) {
  return request({
    url: '/business/emergencyWarehouse/add',
    method: 'post',
    data: data
  })
}

// 修改防汛应急仓库
export function updateemergencyWarehouse(data) {
  return request({
    url: '/business/emergencyWarehouse/edit',
    method: 'put',
    data: data
  })
}

// 删除防汛应急仓库
export function delemergencyWarehouse(id) {
  return request({
    url: '/business/emergencyWarehouse/' + id,
    method: 'delete'
  })
}