nitrogen.api.ts 854 B

12345678910111213141516171819202122232425262728
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. systemList = '/ventanaly-device/monitor/device',
  4. list = '/ventanaly-device/monitor/device',
  5. baseList = '/safety/ventanalyManageSystem/list',
  6. deviceList = '/safety/ventanalyDeviceInfo/list',
  7. getDevice = '/ventanaly-device/monitor/device',
  8. }
  9. /**
  10. * 列表接口
  11. * @param params
  12. */
  13. export const list = (params) => defHttp.post({ url: Api.list, params });
  14. export const systemList = (params) => defHttp.post({ url: Api.systemList, params });
  15. /**
  16. * 保存或者更新用户
  17. * @param params
  18. */
  19. export const getTableList = (params) => defHttp.get({ url: Api.baseList, params });
  20. export const getDeviceList = (params) => defHttp.get({ url: Api.deviceList, params });
  21. //地下注氮系统-监测数据
  22. export const getDevice = (params) => defHttp.post({ url: Api.getDevice, params });