From 35b1ce8f65b78fcdfdd56481b29ed8d74a8a6621 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期五, 03 十一月 2023 17:57:45 +0800
Subject: [PATCH] feat: 进度条背景色,对接设备切换组件接口数据

---
 src/api/index.ts |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/api/index.ts b/src/api/index.ts
index 6b41213..03bc1c8 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -108,6 +108,21 @@
   })
 }
 
+export interface SetCurrentDeviceParams {
+  currentDeviceID: string
+}
+
+/**
+ * 鑾峰彇褰撳墠闈㈡澘缁戝畾鐨勮澶囧垪琛�
+ */
+export function apiSetCurrentDevice(data: SetCurrentDeviceParams) {
+  return request<BaseResponse<Devices>>({
+    url: `/v1/device/setCurrentDeviceId`,
+    method: 'post',
+    data
+  })
+}
+
 export interface CraftModelListParams {
   procedureId: number
   page: number

--
Gitblit v1.8.0