From 68fc51cb635fecf12cad58deab88c3b5e0afc0ad Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 22 八月 2019 17:06:49 +0800
Subject: [PATCH] yunnan swagger doc

---
 controllers/cluster.go |   55 +++++--------------------------------------------------
 1 files changed, 5 insertions(+), 50 deletions(-)

diff --git a/controllers/cluster.go b/controllers/cluster.go
index 3344bb9..873901e 100644
--- a/controllers/cluster.go
+++ b/controllers/cluster.go
@@ -53,15 +53,7 @@
 	NodeIps []string `json:"nodeIps"`
 }
 
-// @Summary 鍒涘缓闆嗙兢
-// @Description 鍒涘缓闆嗙兢
-// @Accept json
-// @Produce json
-// @Tags cluster
-// @Param  clusterArg body controllers.ClusterCreateVo 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/create [post]
+
 func (cc ClusterController) Create(c *gin.Context) {
 	var clusterVo ClusterCreateVo
 	err := c.BindJSON(&clusterVo)
@@ -78,27 +70,13 @@
 	}
 }
 
-// @Summary 鐢熸垚闆嗙兢6浣嶉殢鏈哄瘑鐮�
-// @Description 鐢熸垚闆嗙兢6浣嶉殢鏈哄瘑鐮�
-// @Produce json
-// @Tags cluster
-// @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/randomPwd [get]
+
 func (cc ClusterController) RandomPwd(c *gin.Context) {
 	pwd := fmt.Sprintf("%06v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(1000000))
 	util.ResponseFormat(c,code.Success,pwd)
 }
 
-// @Summary 鎼滅储闆嗙兢
-// @Description 鎼滅储闆嗙兢
-// @Accept json
-// @Produce json
-// @Tags cluster
-// @Param searchArg body controllers.ClusterSearchVo 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/search [post]
+
 func (cc ClusterController) Search(c *gin.Context) {
 	var csv ClusterSearchVo
 	err := c.BindJSON(&csv)
@@ -115,14 +93,7 @@
 	}
 }
 
-// @Summary 閫氳繃searchNum寮傛鑾峰彇闆嗙兢鑺傜偣淇℃伅
-// @Description 閫氳繃searchNum寮傛鑾峰彇闆嗙兢鑺傜偣淇℃伅
-// @Accept json
-// @Produce json
-// @Tags cluster
-// @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/getNodesByNum [get]
+
 func (cc ClusterController) GetSearchNodes(c *gin.Context) {
 	var api dbapi.ClusterApi
 	b, d := api.GetSearchNodes()
@@ -133,14 +104,7 @@
 	}
 }
 
-// @Summary 閫氳繃searchNum鍋滄鎼滅储
-// @Description 閫氳繃searchNum鍋滄鎼滅储
-// @Produce json
-// @Tags cluster
-// @Param searchNum query string 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/stopSearching [post]
+
 func (cc ClusterController) StopSearching(c *gin.Context) {
 	searchNum := c.Query("searchNum")
 	if searchNum == "" {
@@ -157,15 +121,6 @@
 }
 
 
-// @Summary 鍔犲叆闆嗙兢
-// @Description 鍔犲叆闆嗙兢
-// @Accept json
-// @Produce json
-// @Tags cluster
-// @Param  clusterArg body controllers.ClusterCreateVo 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]
 func (cc ClusterController) JoinCluster(c *gin.Context) {
 	var arg ClusterJoinVo
 	err := c.BindJSON(&arg)

--
Gitblit v1.8.0