zhangqian
2023-10-20 72c513ce21caa54369dda02f2b58c006d2ca90c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package request
 
type (
    ClusterDevice struct {
        Id    int      `json:"id"`
        Roles []string `json:"role"`
    }
 
    Devices map[int]ClusterDevice
 
    CreateCluster struct {
        Name        string  `json:"name"`
        Description string  `json:"description"`
        Devices     Devices `json:"devices"`
    }
 
    GetClusterList struct {
        Keyword string `json:"keyword" example:"test"` // 模糊查询字段
        Status  string `json:"status" example:"集群状态 1:全部; 2: 在线; 3: 离线"`
    }
)