patrolWardApi.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { setParams } from '/@/utils/index';
  3. enum Api {
  4. archivesPatrolWardQueryPage = '/archives/patrolWard/query/page',
  5. archivesPatrolWardDetail = '/archives/patrolWard/detail',
  6. archivesPatrolWardAdd = '/archives/patrolWard/add',
  7. archivesPatrolWardEdit = '/archives/patrolWard/edit',
  8. archivesPatrolWardRemove = '/archives/patrolWard/removeByIds',
  9. }
  10. /**
  11. *
  12. * @author fan
  13. * @date 2023/06/30 17:39
  14. * @description: 根据条件查询查房列表,权限 - biz:patrolward:query
  15. * @method: POST
  16. * @param:
  17. * {String} updatorName updator_name
  18. * @return:
  19. * {String} patientBasicId 基础病历id
  20. * {String} scheduledId 排床id
  21. * {Date} patrolTime 查房时间
  22. * {String} content 查房内容
  23. * {String} updatorName updator_name
  24. */
  25. export const archivesPatrolWardQueryPage = (params?: object) => {
  26. return defHttp.post({ url: Api.archivesPatrolWardQueryPage, params: setParams(params) });
  27. };
  28. /**
  29. *
  30. * @author fan
  31. * @date 2023/06/30 17:39
  32. * @description: 根据id查询查房详细信息,权限 - biz:patrolward:query
  33. * @method: GET
  34. * @param: id 查房主键id
  35. * @return:
  36. * {String} patientBasicId 基础病历id
  37. * {String} scheduledId 排床id
  38. * {Date} patrolTime 查房时间
  39. * {String} content 查房内容
  40. * {String} updatorName updator_name
  41. */
  42. export const archivesPatrolWardDetail = (id: string) => {
  43. return defHttp.get({ url: Api.archivesPatrolWardDetail + '/' + id });
  44. };
  45. /**
  46. *
  47. * @author fan
  48. * @date 2023/06/30 17:39
  49. * @description: 添加查房,权限 - biz:patrolward:add
  50. * @method: POST
  51. * @param:
  52. * {String} patientBasicId 基础病历id
  53. * {String} scheduledId 排床id
  54. * {Date} patrolTime 查房时间
  55. * {String} content 查房内容
  56. * @return:
  57. * 0 添加失败
  58. * 1 添加成功
  59. */
  60. export const archivesPatrolWardAdd = (params?: object) => {
  61. return defHttp.post({ url: Api.archivesPatrolWardAdd, params: params });
  62. };
  63. /**
  64. *
  65. * @author fan
  66. * @date 2023/06/30 17:39
  67. * @description: 通过主键id编辑查房,权限 - biz:patrolward:edit
  68. * @method: POST
  69. * @param:
  70. * {String} patientBasicId 基础病历id
  71. * {String} scheduledId 排床id
  72. * {Date} patrolTime 查房时间
  73. * {String} content 查房内容
  74. * @return:
  75. * 0 编辑失败
  76. * 1 编辑成功
  77. */
  78. export const archivesPatrolWardEdit = (params?: object) => {
  79. return defHttp.post({ url: Api.archivesPatrolWardEdit, params: params });
  80. };
  81. /**
  82. * @description: 删除,权限 - biz:patrolward:remove
  83. * @method: POST
  84. */
  85. export const archivesPatrolWardRemove = (params: Array<string | number>) => {
  86. return defHttp.post({ url: Api.archivesPatrolWardRemove, params: params });
  87. };