Commit f495636f authored by 陈龙's avatar 陈龙

feat: 变更设备报警的实现方式

parent 60c22585
import { request } from '@wisdom-utils/utils'; import {request} from '@wisdom-utils/utils';
import * as constants from '../../constants'; import * as constants from '../../constants';
const MonitorDevice = '/PandaMonitor/Monitor/Device'; const MonitorDevice = '/PandaMonitor/Monitor/Device';
const API = { const API = {
GET_ALARM_LIST_REAL_TIME: `${MonitorDevice}/GetAlarmListRealTime`, GET_ALARM_LIST_REAL_TIME: `${MonitorDevice}/GetAlarmListRealTime`,
GET_DEVICE_QUOTA_LIST: `${MonitorDevice}/GetQuotaList`, // GET_DEVICE_QUOTA_LIST: `${MonitorDevice}/GetQuotaList`, //
GET_EQUIPMENT_INFO: `${MonitorDevice}/GetEquipmentInfo`, // 获取设备树
}; };
const monitorServices = { const monitorServices = {
GetAlarmListRealTime: { GetAlarmListRealTime: {
url: API.GET_ALARM_LIST_REAL_TIME, // 获取 数据维护日志 url: API.GET_ALARM_LIST_REAL_TIME, // 获取 数据维护日志
method: constants.REQUEST_METHOD_POST, method: constants.REQUEST_METHOD_POST,
type: constants.REQUEST_HTTP, type: constants.REQUEST_HTTP,
}, },
GetDeviceQuotaList: { GetDeviceQuotaList: {
url: API.GET_DEVICE_QUOTA_LIST, url: API.GET_DEVICE_QUOTA_LIST,
method: constants.REQUEST_METHOD_GET, method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP, type: constants.REQUEST_HTTP,
}, },
getEquipmentInfo: {
url: API.GET_EQUIPMENT_INFO,
method: constants.REQUEST_METHOD_POST,
type: constants.REQUEST_HTTP,
},
}; };
export default monitorServices; export default monitorServices;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment