From 8fdd9fbebe9ad2b4a91244e5f81850bffff5d311 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 17 Apr 2025 17:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sheep/api/door.ts | 58 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/src/sheep/api/door.ts b/src/sheep/api/door.ts index 40c20a7..41708bc 100644 --- a/src/sheep/api/door.ts +++ b/src/sheep/api/door.ts @@ -5,7 +5,6 @@ export default { * app获取智能柜授权信息 * @param doorHardId 智能柜设备id * @param cabinetNo 货柜编号 - * @returns */ appGetAuthHardDoor: (data: { doorHardId: any; cabinetNo: any }) => request({ @@ -20,7 +19,6 @@ export default { * app获取智能柜授权信息 * @param authId 授权id * @param authStatus 是否授权 - * @returns */ appAuthHardDoor: (data: { authId: any; authStatus: any }) => request({ @@ -31,4 +29,60 @@ export default { showLoading: false, }, }), + /** + * app查询智能柜列表(有分页) + */ + hardDoorPage: (params: any) => + request({ + url: "hard/hard-door-manager/app/page", + method: "GET", + params, + custom: { + showLoading: false, + }, + }), + + /** + * app查询智能柜详情 + * @param hardDoorId 智能柜id + */ + hardDoorDetail: (params: { hardDoorId: any }) => + request({ + url: "hard/hard-door-manager/app/detail", + method: "GET", + params, + custom: { + showLoading: false, + }, + }), + + /** + * 上架 + * @param id 绑定id + * @param hardSpuId 商品id + */ + putaway: (data: { hardDoorId: any }) => + request({ + url: "hard/hard-spu/app/putaway", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), + + /** + * 下架 + * @param id 绑定id + * @param hardSpuId 商品id + */ + unPutaway: (data: { hardDoorId: { id: any; hardSpuId: any } }) => + request({ + url: "hard/hard-spu/app/un-putaway", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), }