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

// 查询报警业务事件分页
export function pagedeviceCase(query) {
  return request({
    url: '/business/deviceCase/page',
    method: 'get',
    params: query
  })
}

// 查询报警业务事件列表
export function listdeviceCase(query) {
  return request({
    url: '/business/deviceCase/list',
    method: 'get',
    params: query
  })
}

// 查询报警业务事件详细
export function getdeviceCase(id) {
  return request({
    url: '/business/deviceCase/' + id,
    method: 'get'
  })
}

// 新增报警业务事件
export function adddeviceCase(data) {
  return request({
    url: '/business/deviceCase/add',
    method: 'post',
    data: data
  })
}

// 修改报警业务事件
export function updatedeviceCase(data) {
  return request({
    url: '/business/deviceCase/edit',
    method: 'put',
    data: data
  })
}

// 删除报警业务事件
export function deldeviceCase(id) {
  return request({
    url: '/business/deviceCase/' + id,
    method: 'delete'
  })
}