feat:智能柜接口
This commit is contained in:
1 parent
7af87b8e80
commit
5341ec0047
3 files changed
+48
No files matched your search
@@ -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,
|
||||
},
|
||||
}),
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
@@ -90,4 +90,16 @@ export default {
|
||||
showLoading: false,
|
||||
},
|
||||
}),
|
||||
/**
|
||||
* 是够能够使用智能柜
|
||||
*/
|
||||
isUseDoor: () =>
|
||||
request({
|
||||
url: "wallet/wallet-manage/app/is-use-door",
|
||||
method: "GET",
|
||||
data: {},
|
||||
custom: {
|
||||
showLoading: false,
|
||||
},
|
||||
}),
|
||||
}
|
||||
Reference in new issue
Block a user