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' }) }