diff --git a/src/sheep/api/door.ts b/src/sheep/api/door.ts index d5a84a6..c700347 100644 --- a/src/sheep/api/door.ts +++ b/src/sheep/api/door.ts @@ -159,4 +159,33 @@ export default { showLoading: false, }, }), + /** + * app检修开门 + * @param hardDoorId 智能柜id + * @param cabinetNo 货柜编号 + */ + openAccess: (data: { hardDoorId: string; cabinetNo: string }): Promise => + request({ + url: "hard/hard-door-flow/app/open-access", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), + + /** + * app检修关门 + * @param hardDoorId 智能柜id + * @param cabinetNo 货柜编号 + */ + closeAccess: (data: { hardDoorId: string; cabinetNo: string }): Promise => + request({ + url: "hard/hard-door-flow/app/close-access", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), }