import { defHttp } from '/@/utils/http/axios'; enum Api { subStationList = '/safety/ventanalySubStation/alllist', getList='/safety/ventanalyDeviceInfo/getDeviceListBySubId', getEdit='/safety/ventanalySubStation/edit', runDeviceMonitor='/safety/ventanalyDeviceInfo/runDeviceMonitor' } // 分站查询接口 export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params }); // 分站详细信息列表 export const getList = (params) => defHttp.post({ url: Api.getList, params }); //分站编辑 export const getEdit = (params) => defHttp.put({ url: Api.getEdit, params }); //启动新设备 export const runDeviceMonitor = (params) => defHttp.post({ url: Api.runDeviceMonitor, params });