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

// 查询报警分页
export function pagedeviceAlarm(query) {
  return request({
    url: '/business/deviceAlarm/page',
    method: 'get',
    params: query
  })
}

// 查询报警列表
export function listdeviceAlarm(query) {
  return request({
    url: '/business/deviceAlarm/list',
    method: 'get',
    params: query
  })
}

// 查询报警详细
export function getdeviceAlarm(id) {
  return request({
    url: '/business/deviceAlarm/' + id,
    method: 'get'
  })
}

// 新增报警
export function adddeviceAlarm(data) {
  return request({
    url: '/business/deviceAlarm/add',
    method: 'post',
    data: data
  })
}

// 修改报警
export function updatedeviceAlarm(data) {
  return request({
    url: '/business/deviceAlarm/edit',
    method: 'put',
    data: data
  })
}

// 删除报警
export function deldeviceAlarm(id) {
  return request({
    url: '/business/deviceAlarm/' + id,
    method: 'delete'
  })
}