From 12eff60b5a37fc0d924e68fd75f7482daa60a287 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期六, 06 九月 2025 16:33:51 +0800
Subject: [PATCH] Merge branch 'ID1975-副屏自动更新' into test

---
 src/utils/httpApi.ts |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/src/utils/httpApi.ts b/src/utils/httpApi.ts
index 8e9e878..d8f0c2e 100644
--- a/src/utils/httpApi.ts
+++ b/src/utils/httpApi.ts
@@ -58,4 +58,39 @@
         console.error('Error setting timeout alert:', error);
         throw error;
     }
-};
\ No newline at end of file
+};
+
+/**
+ * 停止定时任务
+ * @param deviceCode 
+ * @returns 
+ */
+export const stopTimeoutAlert = async (deviceCode: string) => {
+    try {
+        const response = await axios.post(`${apiBaseUrl}/patient/hemo/med/record/stopTimeoutAlert`, { deviceCode }, {
+            headers: {
+                'Content-Type': 'application/x-www-form-urlencoded'
+            }
+        });
+        return response.data;
+    } catch (error) {
+        throw error;
+    }
+}
+
+/**
+ * 获取副屏最新的版本号Api
+ * @returns 
+ */
+export const getServiceVersionApi = async(version: string) => {
+    try {
+        const response = await axios.post(`${apiBaseUrl}/system/version/subscreen/showVersionDiff`, { version }, {
+            headers: {
+                'Content-Type': 'application/x-www-form-urlencoded'
+            }
+        });
+        return response.data;
+    } catch (error) {
+        throw error;
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0