import { defHttp } from '/@/utils/http/axios'; enum Api { subStationList = '/safety/ventanalySubStation/alllist', deviceList = '/dataCenter/compute/deviceData/getDeviceAll', devMonitorList = '/dataCenter/compute/deviceData/getDeviceMonitorInfo', } // 分站查询接口 export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params }); //根据设备类型获取设备列表 export const getDeviceListByType = (params) => defHttp.post({ url: Api.deviceList, params, }); //根据设备id获取设备监控数据 export const getDevMonitorListById = (params) => defHttp.post({ url: Api.devMonitorList, params, });