From 7c811247ecf143e08c576986a884bedadc57dd66 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期五, 05 六月 2020 18:29:41 +0800
Subject: [PATCH] add refresh token to resp

---
 controllers/cluster.go |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/controllers/cluster.go b/controllers/cluster.go
index f81dade..3536041 100644
--- a/controllers/cluster.go
+++ b/controllers/cluster.go
@@ -54,6 +54,21 @@
 	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 鍒涘缓闆嗙兢
@@ -204,6 +219,7 @@
 // @Security ApiKeyAuth
 // @Summary 淇濆瓨闆嗙兢鍚嶇О
 // @Description 淇濆瓨闆嗙兢鍚嶇О
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags cluster
 // @Param clusterName formData string true "闆嗙兢鍚嶇О"

--
Gitblit v1.8.0