123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- const {
- request_wxrlxf
- } = require("../func/request")
- // 人脸下发接口
- const doPass = (data) => {
- return request_wxrlxf({
- url: '/api/next/doGetFacePass',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 查询楼宇列表
- const getBuildingList = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/getBuildingList',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 常客获取楼宇的设备列表(sn和name)
- const userWhiteGetSnList = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/userWhiteGetSnList',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 根据访客记录Id获取记录
- const getVisitoryByUserVisitorListDetailId = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/getVisitoryByUserVisitorListDetailId',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 常客邀请访客
- const userWhiteInviteUserVisitor = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/userWhiteInviteUserVisitor',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 常客登记-查询楼宇内是否存在这个常客(集成了下发人脸)
- const userWhiteCheck = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/userWhiteCheck',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 访客预约-查询手机号在该账号内是否是常客
- const getUserWhiteByphoneAndAdminId = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/getUserWhiteByphoneAndAdminId',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 访客预约-提交拜访申请
- const visitorySubmit = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/visitorySubmit',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 企业信息提交审核
- const companyCommit = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/companyCommit',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 查询企业审核情况
- const companyCommitInfoList = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/companyCommitInfoList',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 常客查询拜访记录列表
- const userWhiteVisitList = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/userWhiteVisitList',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 访客查询拜访记录列表
- const visitoryVisitList = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/visitoryVisitList',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 常客处理访客申请记录
- const userWhiteHandleVisitList = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/userWhiteHandleVisitList',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 查看用户数据
- const getUserInfoVO = (data) => {
- return request_wxrlxf({
- url: '/api/appointmentApi/getUserInfoVO',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 营业执照OCR数据获取
- const getOCRDetail = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/getOCRDetail',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 常客查看公司信息
- const userWhiteLookCompanyInfo = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/userWhiteLookCompanyInfo',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 用户OpenId填入
- const openIdSet = (data) => {
- return request_wxrlxf({
- url: '/api/next/openIdSet',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 查询公司列表
- const getCompanyList = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/getCompanyList',
- data: data,
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 通过公司Id查询楼宇和公司信息
- const getBuildingAndCompanyInfo = (adminId) => {
- return request_wxrlxf({
- url: '/api/buildingApi/getBuildingAndCompanyInfo',
- data: {
- adminId: adminId
- },
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 校验此常客白名单id是否有效
- const checkUserWhiteListId = (userWhiteListId) => {
- return request_wxrlxf({
- url: '/api/buildingApi/checkUserWhiteListId',
- data: {
- userWhiteListId: userWhiteListId
- },
- method: 'get',
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 访客下发
- const visitoryDownFaceAgain = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/visitoryDownFaceAgain',
- data: data,
- method: 'get',
- type: 'application/json'
- })
- }
- // 获取访客qrcodeId
- const getVisitorQrcodeId = (data) => {
- return request_wxrlxf({
- url: '/api/buildingApi/getVisitorQrcodeId',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 获取账号的配置信息
- const getAdminConfig = (data) => {
- return request_wxrlxf({
- url: '/api/next/getAdminConfig',
- data: data,
- method: 'get',
- type: 'application/json'
- })
- }
- // 物理卡号填入
- const cardIdExSet = (data) => {
- return request_wxrlxf({
- url: '/api/next/cardIdExSet',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 实名认证方式:新
- const doConfirmFaceNotifyNew = (data) => {
- return request_wxrlxf({
- url: '/api/next/doConfirmFaceNotifyNew',
- data: data,
- method: 'post',
- type: 'application/json'
- })
- }
- // 获取用户梯控码信息
- const ethGet = data => {
- return request_wxrlxf({
- url: "/api/appointmentApi/whitelist/eth/get",
- data: data,
- method: "post",
- type: "application/json"
- });
- };
- module.exports = {
- doPass,
- userWhiteGetSnList,
- getBuildingList,
- getVisitoryByUserVisitorListDetailId,
- userWhiteInviteUserVisitor,
- userWhiteCheck,
- getUserWhiteByphoneAndAdminId,
- visitorySubmit,
- companyCommit,
- companyCommitInfoList,
- userWhiteVisitList,
- userWhiteHandleVisitList,
- getUserInfoVO,
- getOCRDetail,
- visitoryVisitList,
- userWhiteLookCompanyInfo,
- openIdSet,
- getCompanyList,
- getBuildingAndCompanyInfo,
- checkUserWhiteListId,
- visitoryDownFaceAgain,
- getVisitorQrcodeId,
- getAdminConfig,
- cardIdExSet,
- doConfirmFaceNotifyNew,
- ethGet,
- }
|