| | |
| | | NodeIps []string `json:"nodeIps"` |
| | | } |
| | | |
| | | type ClusterDb struct { |
| | | ClusterId string `json:"clusterId"` |
| | | ClusterName string `json:"clusterName"` |
| | | Nodes []NodeDb `json:"nodes"` |
| | | } |
| | | type NodeDb struct { |
| | | Id string `json:"id"` |
| | | ClusterId string `json:"cluster_id"` |
| | | NodeName string `json:"node_name"` |
| | | NodeId string `json:"node_id"` |
| | | NodeIp string `json:"node_ip"` |
| | | CreateTime string `json:"create_time"` |
| | | IsDelete bool `json:"isDelete"` |
| | | } |
| | | |
| | | // @Security ApiKeyAuth |
| | | // @Summary 创建集群 |
| | | // @Description 创建集群 |
| | |
| | | // @Security ApiKeyAuth |
| | | // @Summary 保存集群名称 |
| | | // @Description 保存集群名称 |
| | | // @Accept x-www-form-urlencoded |
| | | // @Produce json |
| | | // @Tags cluster |
| | | // @Param clusterName formData string true "集群名称" |