api.js 534 B

12345678910111213141516171819
  1. // 获取门锁设备信息
  2. export const getOpenDoorInfo = (data) => {
  3. return uni.$http.post(`/user/openDoorInfo`, data);
  4. };
  5. // 小程序上传每次的蓝牙开门的记录
  6. export const unloadBLEOpenDoorLog = (data) => {
  7. return uni.$http.post(`/user/bleOpLogs`, data);
  8. };
  9. // 获取顾客入住记录
  10. export const getCheckinInfo = (hotelId) => {
  11. return uni.$http.get(`/user/checkinInfo/${hotelId}`)
  12. };
  13. // 获取顾客梯控二维码
  14. export const getElevatorQRCode = (data) => {
  15. return uni.$http.post("/user/qrCode", data)
  16. }