zhangzengfei
2023-11-14 6e262c17a5463b02d7440620d13f2eeb98743223
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package vo
 
import "vamicro/system-service/models"
 
type ClusterVo struct {
    ClusterInfo models.Cluster `json:"clusterInfo"`
    Nodes       []models.Node  `json:"nodes"`
}
 
type ClusterCreateVo struct {
    Password    string `json:"password"`
    ClusterName string `json:"clusterName"`
    ClusterId   string `json:"clusterId"`
    VirtualIp   string `json:"virtualIp"`
}
 
type ClusterSearchVo struct {
    Password string `json:"password"`
}
 
type UpdateClusterVo struct {
    ClusterId string `json:"clusterId"`
    NodeId    string `json:"nodeId"`
    Password  string `json:"password"`
}
 
type ClusterJoinVo struct {
    ClusterId string   `json:"clusterId"`
    Password  string   `json:"password"`
    NodeIps   []string `json:"nodeIps"`
}