monitor.js 888 Bytes
Newer Older
程恺文's avatar
程恺文 committed
1
import { request } from '@wisdom-utils/utils';
2 3 4 5
import * as constants from '../../constants';

const MonitorDevice = '/PandaMonitor/Monitor/Device';
const API = {
程恺文's avatar
程恺文 committed
6 7 8
  GET_ALARM_LIST_REAL_TIME: `${MonitorDevice}/GetAlarmListRealTime`,
  GET_DEVICE_QUOTA_LIST: `${MonitorDevice}/GetQuotaList`, //
  GET_EQUIPMENT_INFO: `${MonitorDevice}/GetEquipmentInfo`, // 获取设备树
9 10
};
const monitorServices = {
程恺文's avatar
程恺文 committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  GetAlarmListRealTime: {
    url: API.GET_ALARM_LIST_REAL_TIME, // 获取 数据维护日志
    method: constants.REQUEST_METHOD_POST,
    type: constants.REQUEST_HTTP,
  },
  GetDeviceQuotaList: {
    url: API.GET_DEVICE_QUOTA_LIST,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },
  getEquipmentInfo: {
    url: API.GET_EQUIPMENT_INFO,
    method: constants.REQUEST_METHOD_POST,
    type: constants.REQUEST_HTTP,
  },
26 27
};
export default monitorServices;