diff --git a/god-ui/src/api/passenger/equip.js b/god-ui/src/api/passenger/equip.js new file mode 100644 index 00000000..80a2fb9a --- /dev/null +++ b/god-ui/src/api/passenger/equip.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询区域监控设备列表 +export function listEquip(query) { + return request({ + url: '/monitor/equip/list', + method: 'get', + params: query + }) +} + +// 查询区域监控设备详细 +export function getEquip(id) { + return request({ + url: '/monitor/equip/' + id, + method: 'get' + }) +} + +// 新增区域监控设备 +export function addEquip(data) { + return request({ + url: '/monitor/equip', + method: 'post', + data: data + }) +} + +// 修改区域监控设备 +export function updateEquip(data) { + return request({ + url: '/monitor/equip', + method: 'put', + data: data + }) +} + +// 删除区域监控设备 +export function delEquip(id) { + return request({ + url: '/monitor/equip/' + id, + method: 'delete' + }) +}