three_yards.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. const {
  2. request_wxrlxf
  3. } = 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. }