From 443fb992699818305e3d7f6885ca7d1d36fbe7cd Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 01 十一月 2023 15:47:57 +0800
Subject: [PATCH] 增加系统运行时间,系统状态,集群状态,集群节点数

---
 model/response/common.go |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/model/response/common.go b/model/response/common.go
index 78341ce..9e36958 100644
--- a/model/response/common.go
+++ b/model/response/common.go
@@ -70,8 +70,19 @@
 	Data  interface{}
 }
 
+type SystemDeviceStatus int
+
+const (
+	SystemDeviceStatusNormal   SystemDeviceStatus = 1 //姝e父
+	SystemDeviceStatusUnNormal SystemDeviceStatus = 2 //寮傚父
+)
+
 type DeviceListResponse struct {
-	SystemDeviceID  string   `json:"systemDeviceID,omitempty"`  //宸ユ帶鏈鸿澶嘔D
-	CurrentDeviceID string   `json:"currentDeviceID,omitempty"` //褰撳墠閫夊畾鐨勭敓浜ц澶�
-	DeviceIDList    []string `json:"deviceIDList,omitempty"`    //鐢熶骇璁惧id鍒楄〃
+	SystemDeviceID       string             `json:"systemDeviceID,omitempty"`  //宸ユ帶鏈鸿澶嘔D
+	CurrentDeviceID      string             `json:"currentDeviceID,omitempty"` //褰撳墠閫夊畾鐨勭敓浜ц澶�
+	DeviceIDList         []string           `json:"deviceIDList,omitempty"`    //鐢熶骇璁惧id鍒楄〃
+	SystemDeviceStatus   SystemDeviceStatus `json:"systemDeviceStatus"`        //璁惧鐘舵��
+	ClusterStatus        string             `json:"clusterStatus"`             //闆嗙兢鐘舵��
+	ClusterNodeQuantity  int                `json:"clusterNodeQuantity"`       //闆嗙兢鑺傜偣鏁伴噺
+	SystemDeviceRunSince int64              `json:"systemDeviceRunSince"`      //绯荤粺杩愯寮�濮嬫椂闂存埑
 }

--
Gitblit v1.8.0