From a8ed4654962dc8ac13bfd36436b79f25ba2e05de Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 02 九月 2024 17:10:59 +0800
Subject: [PATCH] monitor info function

---
 src/api/ecg/room/index.ts |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/api/ecg/room/index.ts b/src/api/ecg/room/index.ts
index 033a1b7..945bbe0 100644
--- a/src/api/ecg/room/index.ts
+++ b/src/api/ecg/room/index.ts
@@ -11,6 +11,12 @@
   docName: string | null
 }
 
+export interface MonitorInfo {
+  queueNum : number
+  activeQueueNum : number
+  openingFlag : number
+}
+
 // 璇婂鍜岃瘖鐤楀簥 API
 export const RoomApi = {
   // 鏌ヨ璇婂鍜岃瘖鐤楀簥鍒嗛〉
@@ -64,9 +70,18 @@
   },
 
   //
-  getOpeningFlag: async () => {
-    return await request.get({ url: `/clinic/room/get-opening-flag` })
-  }
+  getMonitorInfo: async () => {
+    return await request.get({ url: `/clinic/room/monitor` })
+  },
 
+  // 鎵嬪姩寮�璇�
+  startBiz: async () => {
+    return await request.get({ url: `/clinic/room/start-biz` })
+  },
+
+  // 鎵嬪姩闂瘖
+  closeBiz: async () => {
+    return await request.get({ url: `/clinic/room/close-biz` })
+  }
 
 }

--
Gitblit v1.9.3