comment.api.ts 1.0 KB

1234567891011121314151617181920212223242526272829
  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. }
  11. /**
  12. * 列表接口
  13. * @param params
  14. */
  15. export const list = (params) => defHttp.get({ url: Api.list, params });
  16. /**
  17. * 保存或者更新用户
  18. * @param params
  19. */
  20. export const updateDeviceInfo = (params) => defHttp.put({ url: Api.edit, params });
  21. export const updateReportInfo = (params) => defHttp.put({ url: Api.input, params });
  22. export const sysList = (params) => defHttp.get({ url: Api.sysList, params });
  23. export const sysInput = (params) => defHttp.put({ url: Api.sysInput, params });
  24. export const getInfoList = (params) => defHttp.post({ url: Api.getInfo, params });
  25. export const getAllFileList = (params) => defHttp.get({ url: Api.getFileList, params });