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

// 查询防汛应急文件分页
export function pageemergencyFile(query) {
  return request({
    url: '/business/emergencyFile/page',
    method: 'get',
    params: query
  })
}

// 查询防汛应急文件列表
export function listemergencyFile(query) {
  return request({
    url: '/business/emergencyFile/list',
    method: 'get',
    params: query
  })
}

// 查询防汛应急文件详细
export function getemergencyFile(id) {
  return request({
    url: '/business/emergencyFile/' + id,
    method: 'get'
  })
}

// 新增防汛应急文件
export function addemergencyFile(data) {
  return request({
    url: '/business/emergencyFile/add',
    method: 'post',
    data: data
  })
}

// 修改防汛应急文件
export function updateemergencyFile(data) {
  return request({
    url: '/business/emergencyFile/edit',
    method: 'put',
    data: data
  })
}

// 删除防汛应急文件
export function delemergencyFile(id) {
  return request({
    url: '/business/emergencyFile/' + id,
    method: 'delete'
  })
}