From ca5ac89a24c6ace3fb7897b4b238b243059dcb43 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 18 十一月 2024 09:32:18 +0800
Subject: [PATCH] 1. word生成优化图片大小生成逻辑

---
 src/api/fysp/deviceApi.js |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/api/fysp/deviceApi.js b/src/api/fysp/deviceApi.js
index f46d505..fe67087 100644
--- a/src/api/fysp/deviceApi.js
+++ b/src/api/fysp/deviceApi.js
@@ -9,5 +9,21 @@
         }
       })
       .then((res) => res.data);
+  },
+  // 鑾峰彇璁惧
+  async fetchDevices(sceneId, deviceTypeId) {
+    const params = `?sceneId=${sceneId}&deviceTypeId=${deviceTypeId}`;
+    return await $fysp
+      .get(`device${params}`)
+      .then((res) => res)
+      .then((res) => res.data);
+  },
+  // 鑾峰彇璁惧鐘舵�佷互鍙婅澶囪鎯�
+  async fetchDeviceStatus({ deviceId, sceneId, deviceTypeId }) {
+    const params = `?deviceId=${deviceId}&sceneId=${sceneId}&deviceTypeId=${deviceTypeId}`;
+    return await $fysp
+      .get(`device/status${params}`)
+      .then((res) => res)
+      .then((res) => res.data);
   }
 };

--
Gitblit v1.9.3