comment.api.ts 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. edit = '/safety/ventanalyDeviceInfo/edit',
  4. list = '/safety/ventanalyDeviceInfo/list',
  5. input = '/safety/ventanalyDeviceInfo/input',
  6. sysList = '/safety/ventanalyManageSystem/list',
  7. sysInput = '/safety/ventanalyManageSystem/input',
  8. getInfo = '/safety/reportLocalData/queryReportData',
  9. getFileList = '/safety/reportLocalData/list',
  10. getGasDeviceInfo = '/monitor/getGasDeviceInfo',
  11. }
  12. /**
  13. * 列表接口
  14. * @param params
  15. */
  16. export const list = (params) => defHttp.get({ url: Api.list, params });
  17. /**
  18. * 保存或者更新用户
  19. * @param params
  20. */
  21. export const updateDeviceInfo = (params) => defHttp.put({ url: Api.edit, params });
  22. export const updateReportInfo = (params) => defHttp.put({ url: Api.input, params });
  23. export const sysList = (params) => defHttp.get({ url: Api.sysList, params });
  24. export const sysInput = (params) => defHttp.put({ url: Api.sysInput, params });
  25. export const getInfoList = (params) => defHttp.post({ url: Api.getInfo, params });
  26. export const getAllFileList = (params) => defHttp.get({ url: Api.getFileList, params });
  27. export const getGasDeviceInfo = (params) => defHttp.post({ url: Api.getGasDeviceInfo, params });