From 6564593ef44090cca74582d7b32ac979c262b908 Mon Sep 17 00:00:00 2001 From: 艺术家 <10819716+q100102@user.noreply.gitee.com> Date: 星期六, 24 五月 2025 23:53:34 +0800 Subject: [PATCH] 优化 --- 项目代码/client/src/api/newapi/Putake.js | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/api/newapi/Putake.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/api/newapi/Putake.js" index 9a778ae..69f7335 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/api/newapi/Putake.js" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/api/newapi/Putake.js" @@ -1,19 +1,18 @@ import http from "../http"; //褰撳墠浣滀笟鑾峰彇鏁版嵁 绫诲埆 -// /api/Putake/ShowPutake export const ShowPutake = (data) => http.post("api/Putake/ShowPutake", data); //鏌ョ湅浠诲姟璇︽儏 -// /api/Putake/GetNjtake export const GetNjtake = (data) => http.post("api/Putake/GetNjtake", data); //纭棰嗗彇 -///api/Putake/ChangeStatus export const ChangeStatus = (data) => http.post("api/Putake/ChangeStatus", data); //鏁版嵁璁板綍 -///api/Putake/Add export const Add = (data) => http.post("api/Putake/Add", data); -//鏁版嵁璁板綍鏌ョ湅璇︽儏 \ No newline at end of file +//濂楃瓛寮�闂� +export const ChanegOpenDoor = (data) => http.post(`/api/Putake/OpenDoor?group=${data}`); +//濂楃瓛鍏抽棬 +export const ChanegCloseDoor = (data) => http.post(`/api/Putake/ClosedDoor?group=${data}`); \ No newline at end of file -- Gitblit v1.9.3