diff --git a/src/sheep/api/door.ts b/src/sheep/api/door.ts new file mode 100644 index 0000000..40c20a7 --- /dev/null +++ b/src/sheep/api/door.ts @@ -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, + }, + }), +} diff --git a/src/sheep/api/index.ts b/src/sheep/api/index.ts index 583e2d2..f1f1dd3 100644 --- a/src/sheep/api/index.ts +++ b/src/sheep/api/index.ts @@ -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" diff --git a/src/sheep/api/wallet.ts b/src/sheep/api/wallet.ts index 5b92043..2f2065e 100644 --- a/src/sheep/api/wallet.ts +++ b/src/sheep/api/wallet.ts @@ -90,4 +90,16 @@ export default { showLoading: false, }, }), + /** + * 是够能够使用智能柜 + */ + isUseDoor: () => + request({ + url: "wallet/wallet-manage/app/is-use-door", + method: "GET", + data: {}, + custom: { + showLoading: false, + }, + }), }