From 87f105455c788e8804dc154014f1d7936b080771 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 07 十一月 2023 09:57:39 +0800
Subject: [PATCH] 设备列表返回设备名

---
 model/response/common.go |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/model/response/common.go b/model/response/common.go
index 699292f..aee78c3 100644
--- a/model/response/common.go
+++ b/model/response/common.go
@@ -79,10 +79,15 @@
 	SystemDeviceStatusUnNormal SystemDeviceStatus = 2 //寮傚父
 )
 
+type Device struct {
+	DeviceID   string `json:"deviceID,omitempty"`
+	DeviceName string `json:"deviceName,omitempty"`
+}
+
 type DeviceListResponse struct {
 	SystemDeviceID       string             `json:"systemDeviceID,omitempty"`  //宸ユ帶鏈鸿澶嘔D
 	CurrentDeviceID      string             `json:"currentDeviceID,omitempty"` //褰撳墠閫夊畾鐨勭敓浜ц澶�
-	DeviceIDList         []string           `json:"deviceIDList,omitempty"`    //鐢熶骇璁惧id鍒楄〃
+	DeviceList           []*Device          `json:"deviceList,omitempty"`      //鐢熶骇璁惧id鍒楄〃
 	SystemDeviceStatus   SystemDeviceStatus `json:"systemDeviceStatus"`        //璁惧鐘舵��
 	ClusterStatus        string             `json:"clusterStatus"`             //闆嗙兢鐘舵��
 	ClusterNodeQuantity  int                `json:"clusterNodeQuantity"`       //闆嗙兢鑺傜偣鏁伴噺

--
Gitblit v1.8.0