three_yards.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. const _my = require("../../__antmove/api/index.js")(my);
  2. const wx = _my;
  3. const { request_wxrlxf } = require("../func/request");
  4. // 发送行程码的短信验证码
  5. const sendMessage = data => {
  6. return request_wxrlxf({
  7. url: "/api/healthCode/sendMessage",
  8. data: data,
  9. method: "get",
  10. type: "application/x-www-form-urlencoded"
  11. });
  12. };
  13. //获取行程信息
  14. const getXcInfo = data => {
  15. return request_wxrlxf({
  16. url: "/api/healthCode/getXcInfo",
  17. data: data,
  18. method: "post",
  19. type: "application/json"
  20. });
  21. };
  22. //获取健康码和核酸信息
  23. const getJkmAndHs = data => {
  24. return request_wxrlxf({
  25. url: "/api/healthCode/getJkmAndHs",
  26. data: data,
  27. method: "post",
  28. type: "application/json"
  29. });
  30. };
  31. // 查询三码信息
  32. const getThreeCodeByAdminId = data => {
  33. return request_wxrlxf({
  34. url: "/api/buildingApi/getThreeCodeByAdminId",
  35. data: data,
  36. method: "get",
  37. type: "application/x-www-form-urlencoded"
  38. });
  39. };
  40. module.exports = {
  41. sendMessage,
  42. getXcInfo,
  43. getThreeCodeByAdminId,
  44. getJkmAndHs
  45. };