fix: 网元列表查询同步更新网元状态

This commit is contained in:
TsMask
2024-03-05 16:14:37 +08:00
parent e0583d8a7d
commit aa3fb21254
3 changed files with 50 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ type NeInfo struct {
VendorName string `json:"vendorName"`
Dn string `json:"dn"`
NeAddress string `json:"neAddress"`
Status string `json:"status"` // 0: 在线 1: 下线 2: 备用 3: 工程
Status string `json:"status"` // 0: 在线 1: 下线 2: 备用 3: 待下发配置
UpdateTime string `json:"updateTime"`
HostIDs string `json:"hostIds"` // 网元主机ID组 数据格式(ssh,telnet,telnet)
@@ -24,5 +24,5 @@ type NeInfo struct {
ServerState map[string]any `json:"serverState,omitempty"`
// 主机对象组
Hosts []NeHost `json:"hosts,omitempty" binding:"hosts"`
Hosts []NeHost `json:"hosts,omitempty"`
}