feat: 网元信息查询带主机信息查询函数

This commit is contained in:
TsMask
2024-03-01 19:01:08 +08:00
parent c09bd4dbf3
commit ec57024cca
5 changed files with 48 additions and 8 deletions

View File

@@ -16,9 +16,13 @@ type NeInfo struct {
NeAddress string `json:"neAddress"`
Status string `json:"status"` // 0: 在线 1: 下线 2: 备用 3: 工程
UpdateTime string `json:"updateTime"`
HostIDs string `json:"hostIds"` // 网元主机ID组 数据格式(ssh,telnet,telnet)
// ====== 非数据库字段属性 ======
// 服务状态
ServerState map[string]any `json:"serverState,omitempty"`
// 主机对象组
Hosts []NeHost `json:"hosts,omitempty" binding:"hosts"`
}