follow.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import request from '@/utils/request'
  2. /**
  3. * 保存患者关注
  4. * @param {*} data
  5. * @returns
  6. */
  7. export function savePatientFollow(data) {
  8. return request({
  9. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/doctor/follow/patient/followOrNot`,
  10. method: 'post',
  11. data
  12. })
  13. }
  14. /**
  15. * 查询关注的人
  16. * @param {*} data
  17. * @returns
  18. */
  19. export function queryMyPatientFollow(data) {
  20. return request({
  21. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/doctor/follow/patient/query`,
  22. method: 'post',
  23. data
  24. })
  25. }
  26. /**
  27. * 关注详情
  28. * @param {*} data
  29. * @returns
  30. */
  31. export function detailMyPatientFollow(data) {
  32. return request({
  33. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/doctor/follow/patient/detail`,
  34. method: 'post',
  35. data
  36. })
  37. }
  38. /**
  39. * 新增配置关系
  40. * @param {*} data
  41. * @returns
  42. */
  43. export function saveFollowConfig(data) {
  44. return request({
  45. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/doctor/relation/saveByDoctor`,
  46. method: 'post',
  47. data
  48. })
  49. }
  50. /**
  51. * 查询配置关系
  52. * @param {*} data
  53. * @returns
  54. */
  55. export function queryFollowConfig(data) {
  56. return request({
  57. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/doctor/relation/queryByDoctor`,
  58. method: 'post',
  59. data
  60. })
  61. }
  62. /**
  63. * 获取配置关系
  64. * @param {*} data
  65. * @returns
  66. */
  67. export function detailFollowConfig(data) {
  68. return request({
  69. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/doctor/relation/detailByDoctor`,
  70. method: 'post',
  71. data
  72. })
  73. }
  74. /**
  75. * 更新配置关系
  76. * @param {*} data
  77. * @returns
  78. */
  79. export function updateFollowConfig(data) {
  80. return request({
  81. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/doctor/relation/update`,
  82. method: 'post',
  83. data
  84. })
  85. }
  86. /**
  87. * 更新配置关系
  88. * @param {*} data
  89. * @returns
  90. */
  91. export function delFollowConfig(data) {
  92. return request({
  93. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/doctor/relation/del`,
  94. method: 'post',
  95. data
  96. })
  97. }