From dd75b36c03049be232a94d97eff1c4a5cc751fb5 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 31 十月 2023 22:08:39 +0800
Subject: [PATCH] 支持设备ID切换

---
 model/response/common.go |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/model/response/common.go b/model/response/common.go
index ee3ff27..78341ce 100644
--- a/model/response/common.go
+++ b/model/response/common.go
@@ -31,10 +31,11 @@
 }
 
 type TaskResponse struct {
-	Tasks     []*TaskData
-	TaskCount int64
-	Workers   []*common.ProcedureWorker `json:"workers"` // 浜哄憳鍒楄〃
-	Prompt    conf.Prompt
+	Tasks         []*TaskData               //浠诲姟鍒楄〃
+	TaskCount     int64                     //浠诲姟鏁伴噺
+	Workers       []*common.ProcedureWorker `json:"workers"` // 浜哄憳鍒楄〃
+	Prompt        conf.Prompt               //鎻愮ず璇�
+	ChannelAmount int                       //閫氶亾鏁伴噺
 }
 
 type Config struct {
@@ -63,3 +64,14 @@
 	CountDownMinute int64 //鍊掕鏃� 鍒�
 	ShowCountDown   bool  //鏄惁灞曠ず鍊掕鏃�
 }
+
+type Message struct {
+	Event string
+	Data  interface{}
+}
+
+type DeviceListResponse struct {
+	SystemDeviceID  string   `json:"systemDeviceID,omitempty"`  //宸ユ帶鏈鸿澶嘔D
+	CurrentDeviceID string   `json:"currentDeviceID,omitempty"` //褰撳墠閫夊畾鐨勭敓浜ц澶�
+	DeviceIDList    []string `json:"deviceIDList,omitempty"`    //鐢熶骇璁惧id鍒楄〃
+}

--
Gitblit v1.8.0