make_appointment.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. const _my = require("../../__antmove/api/index.js")(my);
  2. const wx = _my;
  3. const { request_wxrlxf } = require("../func/request");
  4. // 查询账号基础信息
  5. const getInfo = adminId => {
  6. return request_wxrlxf({
  7. url: "/api/appointmentApi/getInfo",
  8. data: {
  9. adminId
  10. },
  11. method: "get",
  12. type: "application/x-www-form-urlencoded"
  13. });
  14. };
  15. // 查询预约信息
  16. const getAppointmentInfo = data => {
  17. return request_wxrlxf({
  18. url: "/api/appointmentApi/getAppointmentInfo",
  19. data: data,
  20. method: "post",
  21. type: "application/json"
  22. });
  23. };
  24. // 查询可以预约的日期
  25. const getTimeList = adminId => {
  26. return request_wxrlxf({
  27. url: "/api/appointmentApi/getTimeList",
  28. data: {
  29. adminId
  30. },
  31. method: "get",
  32. type: "application/x-www-form-urlencoded"
  33. });
  34. };
  35. // 查询预约的时间段列表
  36. const getTimeSlotList = data => {
  37. return request_wxrlxf({
  38. url: "/api/appointmentApi/getTimeSlotList",
  39. data: data,
  40. method: "post",
  41. type: "application/json"
  42. });
  43. };
  44. // 查询是否可以进行实名认证
  45. const selectAuthenticationAuthority = data => {
  46. return request_wxrlxf({
  47. url: "/api/appointmentApi/selectAuthenticationAuthority",
  48. data: data,
  49. method: "post",
  50. type: "application/json"
  51. });
  52. };
  53. // 预约登记
  54. const appointment = data => {
  55. return request_wxrlxf({
  56. url: "/api/appointmentApi/appointment",
  57. data: data,
  58. method: "post",
  59. type: "application/json"
  60. });
  61. };
  62. // 修改人员信息
  63. const updateUserInfo = data => {
  64. return request_wxrlxf({
  65. url: "/api/appointmentApi/updateUserInfo",
  66. data: data,
  67. method: "post",
  68. type: "application/json"
  69. });
  70. };
  71. // 查看预约单
  72. const lookAppointment = data => {
  73. return request_wxrlxf({
  74. url: "/api/appointmentApi/lookAppointment",
  75. data: data,
  76. method: "post",
  77. type: "application/json"
  78. });
  79. };
  80. //
  81. const lookAppointmentRecord = data => {
  82. return request_wxrlxf({
  83. url: "/api/appointmentApi/lookAppointmentRecord",
  84. data: data,
  85. method: "post",
  86. type: "application/json"
  87. });
  88. };
  89. // 取消预约
  90. const cancelAppointment = data => {
  91. return request_wxrlxf({
  92. url: "/api/appointmentApi/cancelAppointment",
  93. data: data,
  94. method: "post",
  95. type: "application/json"
  96. });
  97. };
  98. // OCR数据获取
  99. const getPassportDetail = data => {
  100. return request_wxrlxf({
  101. url: "/api/appointmentApi/getPassportDetail",
  102. data: data,
  103. method: "get",
  104. type: "application/json"
  105. });
  106. };
  107. // 人证比对
  108. const BaiDuFaceComparison = data => {
  109. return request_wxrlxf({
  110. url: "/api/appointmentApi/BaiDuFaceComparison",
  111. data: data,
  112. method: "post",
  113. type: "application/json"
  114. });
  115. };
  116. // 外宾实名认证-修改
  117. const foreignAuthentication = data => {
  118. return request_wxrlxf({
  119. url: "/api/appointmentApi/foreignAuthentication",
  120. data: data,
  121. method: "post",
  122. type: "application/json"
  123. });
  124. };
  125. module.exports = {
  126. getInfo,
  127. getAppointmentInfo,
  128. getTimeList,
  129. getTimeSlotList,
  130. selectAuthenticationAuthority,
  131. appointment,
  132. updateUserInfo,
  133. lookAppointment,
  134. lookAppointmentRecord,
  135. cancelAppointment,
  136. getPassportDetail,
  137. BaiDuFaceComparison,
  138. foreignAuthentication
  139. };