From 3a706d3378aa3626501370352963883fd2783558 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 28 十一月 2023 11:24:49 +0800 Subject: [PATCH] 添加appcenter,完善算法上传下载功能 --- system-service/vo/cluster.go | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/system-service/vo/cluster.go b/system-service/vo/cluster.go index f014a52..3b9116f 100644 --- a/system-service/vo/cluster.go +++ b/system-service/vo/cluster.go @@ -1,24 +1,31 @@ package vo import "vamicro/system-service/models" + type ClusterVo struct { ClusterInfo models.Cluster `json:"clusterInfo"` - Nodes []models.Node `json:"nodes"` + Nodes []models.Node `json:"nodes"` } type ClusterCreateVo struct { - Password string `json:"password"` + Password string `json:"password"` ClusterName string `json:"clusterName"` - ClusterId string `json:"clusterId"` - VirtualIp string `json:"virtualIp"` + ClusterId string `json:"clusterId"` + VirtualIp string `json:"virtualIp"` } type ClusterSearchVo struct { Password string `json:"password"` } -type ClusterJoinVo struct { +type UpdateClusterVo struct { ClusterId string `json:"clusterId"` - Password string `json:"password"` - NodeIps []string `json:"nodeIps"` + NodeId string `json:"nodeId"` + Password string `json:"password"` +} + +type ClusterJoinVo struct { + ClusterId string `json:"clusterId"` + Password string `json:"password"` + NodeIps []string `json:"nodeIps"` } -- Gitblit v1.8.0