api.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. const {
  2. request_wxrlxf
  3. } = require("../func/request")
  4. // 人脸下发接口
  5. const doPass = (data) => {
  6. return request_wxrlxf({
  7. url: '/api/next/doGetFacePass',
  8. data: data,
  9. method: 'get',
  10. type: 'application/x-www-form-urlencoded'
  11. })
  12. }
  13. // 查询楼宇列表
  14. const getBuildingList = (data) => {
  15. return request_wxrlxf({
  16. url: '/api/buildingApi/getBuildingList',
  17. data: data,
  18. method: 'get',
  19. type: 'application/x-www-form-urlencoded'
  20. })
  21. }
  22. // 常客获取楼宇的设备列表(sn和name)
  23. const userWhiteGetSnList = (data) => {
  24. return request_wxrlxf({
  25. url: '/api/buildingApi/userWhiteGetSnList',
  26. data: data,
  27. method: 'get',
  28. type: 'application/x-www-form-urlencoded'
  29. })
  30. }
  31. // 根据访客记录Id获取记录
  32. const getVisitoryByUserVisitorListDetailId = (data) => {
  33. return request_wxrlxf({
  34. url: '/api/buildingApi/getVisitoryByUserVisitorListDetailId',
  35. data: data,
  36. method: 'get',
  37. type: 'application/x-www-form-urlencoded'
  38. })
  39. }
  40. // 常客邀请访客
  41. const userWhiteInviteUserVisitor = (data) => {
  42. return request_wxrlxf({
  43. url: '/api/buildingApi/userWhiteInviteUserVisitor',
  44. data: data,
  45. method: 'post',
  46. type: 'application/json'
  47. })
  48. }
  49. // 常客登记-查询楼宇内是否存在这个常客(集成了下发人脸)
  50. const userWhiteCheck = (data) => {
  51. return request_wxrlxf({
  52. url: '/api/buildingApi/userWhiteCheck',
  53. data: data,
  54. method: 'post',
  55. type: 'application/json'
  56. })
  57. }
  58. // 访客预约-查询手机号在该账号内是否是常客
  59. const getUserWhiteByphoneAndAdminId = (data) => {
  60. return request_wxrlxf({
  61. url: '/api/buildingApi/getUserWhiteByphoneAndAdminId',
  62. data: data,
  63. method: 'post',
  64. type: 'application/json'
  65. })
  66. }
  67. // 访客预约-提交拜访申请
  68. const visitorySubmit = (data) => {
  69. return request_wxrlxf({
  70. url: '/api/buildingApi/visitorySubmit',
  71. data: data,
  72. method: 'post',
  73. type: 'application/json'
  74. })
  75. }
  76. // 企业信息提交审核
  77. const companyCommit = (data) => {
  78. return request_wxrlxf({
  79. url: '/api/buildingApi/companyCommit',
  80. data: data,
  81. method: 'post',
  82. type: 'application/json'
  83. })
  84. }
  85. // 查询企业审核情况
  86. const companyCommitInfoList = (data) => {
  87. return request_wxrlxf({
  88. url: '/api/buildingApi/companyCommitInfoList',
  89. data: data,
  90. method: 'get',
  91. type: 'application/x-www-form-urlencoded'
  92. })
  93. }
  94. // 常客查询拜访记录列表
  95. const userWhiteVisitList = (data) => {
  96. return request_wxrlxf({
  97. url: '/api/buildingApi/userWhiteVisitList',
  98. data: data,
  99. method: 'post',
  100. type: 'application/json'
  101. })
  102. }
  103. // 访客查询拜访记录列表
  104. const visitoryVisitList = (data) => {
  105. return request_wxrlxf({
  106. url: '/api/buildingApi/visitoryVisitList',
  107. data: data,
  108. method: 'post',
  109. type: 'application/json'
  110. })
  111. }
  112. // 常客处理访客申请记录
  113. const userWhiteHandleVisitList = (data) => {
  114. return request_wxrlxf({
  115. url: '/api/buildingApi/userWhiteHandleVisitList',
  116. data: data,
  117. method: 'post',
  118. type: 'application/json'
  119. })
  120. }
  121. // 查看用户数据
  122. const getUserInfoVO = (data) => {
  123. return request_wxrlxf({
  124. url: '/api/appointmentApi/getUserInfoVO',
  125. data: data,
  126. method: 'get',
  127. type: 'application/x-www-form-urlencoded'
  128. })
  129. }
  130. // 营业执照OCR数据获取
  131. const getOCRDetail = (data) => {
  132. return request_wxrlxf({
  133. url: '/api/buildingApi/getOCRDetail',
  134. data: data,
  135. method: 'get',
  136. type: 'application/x-www-form-urlencoded'
  137. })
  138. }
  139. // 常客查看公司信息
  140. const userWhiteLookCompanyInfo = (data) => {
  141. return request_wxrlxf({
  142. url: '/api/buildingApi/userWhiteLookCompanyInfo',
  143. data: data,
  144. method: 'get',
  145. type: 'application/x-www-form-urlencoded'
  146. })
  147. }
  148. // 用户OpenId填入
  149. const openIdSet = (data) => {
  150. return request_wxrlxf({
  151. url: '/api/next/openIdSet',
  152. data: data,
  153. method: 'post',
  154. type: 'application/json'
  155. })
  156. }
  157. // 查询公司列表
  158. const getCompanyList = (data) => {
  159. return request_wxrlxf({
  160. url: '/api/buildingApi/getCompanyList',
  161. data: data,
  162. method: 'get',
  163. type: 'application/x-www-form-urlencoded'
  164. })
  165. }
  166. // 通过公司Id查询楼宇和公司信息
  167. const getBuildingAndCompanyInfo = (adminId) => {
  168. return request_wxrlxf({
  169. url: '/api/buildingApi/getBuildingAndCompanyInfo',
  170. data: {
  171. adminId: adminId
  172. },
  173. method: 'get',
  174. type: 'application/x-www-form-urlencoded'
  175. })
  176. }
  177. // 校验此常客白名单id是否有效
  178. const checkUserWhiteListId = (userWhiteListId) => {
  179. return request_wxrlxf({
  180. url: '/api/buildingApi/checkUserWhiteListId',
  181. data: {
  182. userWhiteListId: userWhiteListId
  183. },
  184. method: 'get',
  185. type: 'application/x-www-form-urlencoded'
  186. })
  187. }
  188. // 访客下发
  189. const visitoryDownFaceAgain = (data) => {
  190. return request_wxrlxf({
  191. url: '/api/buildingApi/visitoryDownFaceAgain',
  192. data: data,
  193. method: 'get',
  194. type: 'application/json'
  195. })
  196. }
  197. // 获取访客qrcodeId
  198. const getVisitorQrcodeId = (data) => {
  199. return request_wxrlxf({
  200. url: '/api/buildingApi/getVisitorQrcodeId',
  201. data: data,
  202. method: 'post',
  203. type: 'application/json'
  204. })
  205. }
  206. // 获取账号的配置信息
  207. const getAdminConfig = (data) => {
  208. return request_wxrlxf({
  209. url: '/api/next/getAdminConfig',
  210. data: data,
  211. method: 'get',
  212. type: 'application/json'
  213. })
  214. }
  215. // 物理卡号填入
  216. const cardIdExSet = (data) => {
  217. return request_wxrlxf({
  218. url: '/api/next/cardIdExSet',
  219. data: data,
  220. method: 'post',
  221. type: 'application/json'
  222. })
  223. }
  224. // 实名认证方式:新
  225. const doConfirmFaceNotifyNew = (data) => {
  226. return request_wxrlxf({
  227. url: '/api/next/doConfirmFaceNotifyNew',
  228. data: data,
  229. method: 'post',
  230. type: 'application/json'
  231. })
  232. }
  233. // 获取用户梯控码信息
  234. const ethGet = data => {
  235. return request_wxrlxf({
  236. url: "/api/appointmentApi/whitelist/eth/get",
  237. data: data,
  238. method: "post",
  239. type: "application/json"
  240. });
  241. };
  242. module.exports = {
  243. doPass,
  244. userWhiteGetSnList,
  245. getBuildingList,
  246. getVisitoryByUserVisitorListDetailId,
  247. userWhiteInviteUserVisitor,
  248. userWhiteCheck,
  249. getUserWhiteByphoneAndAdminId,
  250. visitorySubmit,
  251. companyCommit,
  252. companyCommitInfoList,
  253. userWhiteVisitList,
  254. userWhiteHandleVisitList,
  255. getUserInfoVO,
  256. getOCRDetail,
  257. visitoryVisitList,
  258. userWhiteLookCompanyInfo,
  259. openIdSet,
  260. getCompanyList,
  261. getBuildingAndCompanyInfo,
  262. checkUserWhiteListId,
  263. visitoryDownFaceAgain,
  264. getVisitorQrcodeId,
  265. getAdminConfig,
  266. cardIdExSet,
  267. doConfirmFaceNotifyNew,
  268. ethGet,
  269. }