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

// 查询防汛-险情上报分页
export function pagedangerReport(query) {
  return request({
    url: '/business/dangerReport/page',
    method: 'get',
    params: query
  })
}

// 查询防汛-险情上报列表
export function listdangerReport(query) {
  return request({
    url: '/business/dangerReport/list',
    method: 'get',
    params: query
  })
}

// 查询防汛-险情上报详细
export function getdangerReport(id) {
  return request({
    url: '/business/dangerReport/' + id,
    method: 'get'
  })
}

// 新增防汛-险情上报
export function adddangerReport(data) {
  return request({
    url: '/business/dangerReport/add',
    method: 'post',
    data: data
  })
}

// 修改防汛-险情上报
export function updatedangerReport(data) {
  return request({
    url: '/business/dangerReport/edit',
    method: 'put',
    data: data
  })
}

// 删除防汛-险情上报
export function deldangerReport(id) {
  return request({
    url: '/business/dangerReport/' + id,
    method: 'delete'
  })
}