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

// 查询防汛抢险队伍分页
export function pagerescueTeam(query) {
  return request({
    url: '/business/rescueTeam/page',
    method: 'get',
    params: query
  })
}

// 查询防汛抢险队伍列表
export function listrescueTeam(query) {
  return request({
    url: '/business/rescueTeam/list',
    method: 'get',
    params: query
  })
}

// 查询防汛抢险队伍详细
export function getrescueTeam(id) {
  return request({
    url: '/business/rescueTeam/' + id,
    method: 'get'
  })
}

// 新增防汛抢险队伍
export function addrescueTeam(data) {
  return request({
    url: '/business/rescueTeam/add',
    method: 'post',
    data: data
  })
}

// 修改防汛抢险队伍
export function updaterescueTeam(data) {
  return request({
    url: '/business/rescueTeam/edit',
    method: 'put',
    data: data
  })
}

// 删除防汛抢险队伍
export function delrescueTeam(id) {
  return request({
    url: '/business/rescueTeam/' + id,
    method: 'delete'
  })
}