From b7816d3ae7162d8d7c0a1fb0380647fa4440ac1b Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 07 十一月 2019 20:01:26 +0800
Subject: [PATCH] fix nodeType
---
controllers/cluster.go | 27 +++++++++++++++++++++++++--
1 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/controllers/cluster.go b/controllers/cluster.go
index 6692323..bfbda95 100644
--- a/controllers/cluster.go
+++ b/controllers/cluster.go
@@ -54,6 +54,22 @@
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 鍒涘缓闆嗙兢
// @Accept json
@@ -79,6 +95,7 @@
}
}
+// @Security ApiKeyAuth
// @Summary 鐢熸垚闆嗙兢6浣嶉殢鏈哄瘑鐮�
// @Description 鐢熸垚闆嗙兢6浣嶉殢鏈哄瘑鐮�
// @Produce json
@@ -91,6 +108,7 @@
util.ResponseFormat(c,code.Success,pwd)
}
+// @Security ApiKeyAuth
// @Summary 鏌ヨ鏈湴闆嗙兢
// @Description 鏌ヨ鏈湴闆嗙兢
// @Produce json
@@ -108,6 +126,7 @@
}
}
+// @Security ApiKeyAuth
// @Summary 鎼滅储闆嗙兢
// @Description 鎼滅储闆嗙兢
// @Accept json
@@ -133,6 +152,7 @@
}
}
+// @Security ApiKeyAuth
// @Summary 閫氳繃searchNum寮傛鑾峰彇闆嗙兢鑺傜偣淇℃伅
// @Description 閫氳繃searchNum寮傛鑾峰彇闆嗙兢鑺傜偣淇℃伅
// @Accept json
@@ -151,6 +171,7 @@
}
}
+// @Security ApiKeyAuth
// @Summary 閫氳繃searchNum鍋滄鎼滅储
// @Description 閫氳繃searchNum鍋滄鎼滅储
// @Produce json
@@ -168,13 +189,13 @@
}
}
-
+// @Security ApiKeyAuth
// @Summary 鍔犲叆闆嗙兢
// @Description 鍔犲叆闆嗙兢
// @Accept json
// @Produce json
// @Tags cluster
-// @Param clusterArg body controllers.ClusterCreateVo true "闆嗙兢鍒涘缓鍙傛暟"
+// @Param clusterArg body controllers.ClusterJoinVo true "闆嗙兢鍒涘缓鍙傛暟"
// @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
// @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
// @Router /data/api-v/cluster/joinCluster [post]
@@ -195,6 +216,7 @@
}
}
+// @Security ApiKeyAuth
// @Summary 淇濆瓨闆嗙兢鍚嶇О
// @Description 淇濆瓨闆嗙兢鍚嶇О
// @Produce json
@@ -220,6 +242,7 @@
}
}
+// @Security ApiKeyAuth
// @Summary 閫�鍑洪泦缇�
// @Description 閫�鍑洪泦缇�
// @Produce json
--
Gitblit v1.8.0