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

// 查询防汛应急队伍分页
export function pageemergencyTeam(query) {
  return request({
    url: '/business/emergencyTeam/page',
    method: 'get',
    params: query
  })
}

// 查询防汛应急队伍列表
export function listemergencyTeam(query) {
  return request({
    url: '/business/emergencyTeam/list',
    method: 'get',
    params: query
  })
}

// 查询防汛应急队伍详细
export function getemergencyTeam(id) {
  return request({
    url: '/business/emergencyTeam/' + id,
    method: 'get'
  })
}

// 新增防汛应急队伍
export function addemergencyTeam(data) {
  return request({
    url: '/business/emergencyTeam/add',
    method: 'post',
    data: data
  })
}

// 修改防汛应急队伍
export function updateemergencyTeam(data) {
  return request({
    url: '/business/emergencyTeam/edit',
    method: 'put',
    data: data
  })
}

// 删除防汛应急队伍
export function delemergencyTeam(id) {
  return request({
    url: '/business/emergencyTeam/' + id,
    method: 'delete'
  })
}