feat:智能柜接口

This commit is contained in:
dzc committed 2025-04-15 20:42:02 +08:00
1 parent 7af87b8e80
commit 5341ec0047
3 files changed
+48

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
import request from "@/sheep/utils/request"
export default {
/**
* app获取智能柜授权信息
* @param doorHardId 智能柜设备id
* @param cabinetNo 货柜编号
* @returns
*/
appGetAuthHardDoor: (data: { doorHardId: any; cabinetNo: any }) =>
request({
url: "hard/hard-auth/app/get-auth-hard-door",
method: "POST",
data,
custom: {
showLoading: false,
},
}),
/**
* app获取智能柜授权信息
* @param authId 授权id
* @param authStatus 是否授权
* @returns
*/
appAuthHardDoor: (data: { authId: any; authStatus: any }) =>
request({
url: "hard/hard-auth/app/get-auth-hard-door",
method: "POST",
data,
custom: {
showLoading: false,
},
}),
}
+2
View File
@@ -4,6 +4,8 @@ export { default as boxesApi } from "./boxes"
export { default as commonApi } from "./common"
export { default as doorApi } from "./door"
export { default as foodApi } from "./food"
export { default as merchantApi } from "./merchant"
+12
View File
@@ -90,4 +90,16 @@ export default {
showLoading: false,
},
}),
/**
* 是够能够使用智能柜
*/
isUseDoor: () =>
request({
url: "wallet/wallet-manage/app/is-use-door",
method: "GET",
data: {},
custom: {
showLoading: false,
},
}),
}