zhangqian
2023-08-14 676ef551324d415ed5280166407c686481c6f51f
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: 离线"`
    }
)