From f26a0cab5bca17b7eab57f6330e576271e17a17f Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 13 十一月 2019 19:12:08 +0800
Subject: [PATCH] update ynSwagger,sync to master

---
 extend/code/code.go |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/extend/code/code.go b/extend/code/code.go
index 93a4341..c985159 100644
--- a/extend/code/code.go
+++ b/extend/code/code.go
@@ -14,6 +14,7 @@
 	Success = &Code{http.StatusOK, true, "璇锋眰澶勭悊鎴愬姛"}
 	AddSuccess = &Code{http.StatusOK,true,"娣诲姞鎴愬姛"}
 	UpdateSuccess = &Code{http.StatusOK,true,"鏇存柊鎴愬姛"}
+	UpdateFail    = &Code{http.StatusBadRequest, false, "鏇存柊澶辫触"}
 	DelSuccess = &Code{http.StatusOK,true,"鍒犻櫎鎴愬姛"}
 	// RequestParamError 璇锋眰鍙傛暟閿欒
 	RequestParamError = &Code{http.StatusBadRequest, false, "璇锋眰鍙傛暟鏈夎"}
@@ -57,5 +58,9 @@
 	TaskStoped = &Code{http.StatusOK, false, "姝や换鍔′负鍋滅敤鐘舵�侊紝璇峰湪浠诲姟绠$悊涓紑鍚紒"}
 
 	ComError = &Code{http.StatusInternalServerError, false, ""}
-	ClusterNodesEmpty = &Code{http.StatusOK, true, "闆嗙兢鑺傜偣涓虹┖"}
+	ClusterNodesEmpty   = &Code{http.StatusOK, true, "闆嗙兢鑺傜偣涓虹┖"}
+	AddTaskErr          = &Code{http.StatusInternalServerError, false, "姝ゅ浗鏍囨憚鍍忔満宸插湪鍏跺畠鏈嶅姟鍣ㄩ厤缃换鍔★紒"}
+	CreateFirstNodeErr  = &Code{http.StatusInternalServerError, false, "鍒涘缓鑺傜偣澶辫触锛�"}
+	QueryClusterInfoErr = &Code{http.StatusInternalServerError, false, "鏌ヨ澶辫触锛岃纭鎮ㄧ殑ip鏄纭殑锛�"}
+	AddClusterInfoErr   = &Code{http.StatusInternalServerError, false, "鍔犲叆鑺傜偣澶辫触锛�"}
 )

--
Gitblit v1.8.0