internalManager.api.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. addList = '/ventanaly-device/safety/rdl/add',
  4. addBatchList = '/ventanaly-device/safety/rdl/addBatch',
  5. deleteById = '/ventanaly-device/safety/rdl/delete',
  6. deleteBatch = '/ventanaly-device/safety/rdl/deleteBatch',
  7. editList = '/ventanaly-device/safety/rdl/edit',
  8. getList = '/ventanaly-device/safety/rdl/list',
  9. queryById = '/ventanaly-device/safety/rdl/queryById',
  10. autoLinkReg = '/ventanaly-device/safety/rdl/autoMonitorLinkReg',
  11. }
  12. /**
  13. * 新增规程关联表
  14. * @param params
  15. */
  16. export const addList = (params) => defHttp.post({ url: Api.addList, params });
  17. /**
  18. * 批量新增规程关联表
  19. * @param params
  20. */
  21. export const addBatchList = (params) => defHttp.post({ url: Api.addBatchList, params });
  22. /**
  23. * 删除规程关联表
  24. * @param params
  25. */
  26. export const deleteById = (params) =>
  27. defHttp.delete({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.deleteById, params });
  28. /**
  29. * 批量删除规程关联表
  30. * @param params
  31. */
  32. export const deleteBatch = (params) =>
  33. defHttp.delete({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.deleteBatch, params });
  34. /**
  35. * 编辑规程关联表
  36. * @param params
  37. */
  38. export const editList = (params) => defHttp.post({ url: Api.editList, params });
  39. /**
  40. * 规程关联表-分页列表查询
  41. * @param params
  42. */
  43. export const getList = (params) =>
  44. defHttp.get({
  45. headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
  46. url: Api.getList,
  47. params,
  48. });
  49. /**
  50. * 规程关联表-通过id查询
  51. * @param params
  52. */
  53. export const queryById = (params) => defHttp.get({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.queryById, params });
  54. /**
  55. * 自动关联规程关联表
  56. * @param params
  57. */
  58. export const autoLinkReg = (params) => defHttp.post({ url: Api.autoLinkReg, params });