From b0500fee9c01e17c81b9293b244c8ed88dc9ca29 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 11 十月 2019 15:12:25 +0800
Subject: [PATCH] add swagger

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

diff --git a/extend/code/code.go b/extend/code/code.go
index 93a4341..9ca61bb 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, "璇锋眰鍙傛暟鏈夎"}
@@ -29,7 +30,8 @@
 	UploadSizeLimit = &Code{http.StatusBadRequest, false, "鐩墠涓婁紶浠呮敮鎸佸皬浜�5M鐨勬枃浠跺唴瀹�"}
 	LoginSuccess = &Code{http.StatusOK,true,"鐧诲綍鎴愬姛"}
 	// SigninInfoError 璐︽埛鍚嶆垨瀵嗙爜鏈夎
-	SigninInfoError = &Code{http.StatusUnauthorized, false, "璐︽埛鍚嶆垨瀵嗙爜鏈夎"}
+	LoginInfoError = &Code{http.StatusUnauthorized, false, "鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒"}
+	LogoutSuccess = &Code{http.StatusOK,true,"閫�鍑烘垚鍔�"}
 	// TokenNotFound 璇锋眰鏈惡甯oken, 鏃犳潈璁块棶
 	TokenNotFound = &Code{http.StatusUnauthorized, false, "璇锋眰鏈惡甯oken, 鏃犳潈璁块棶"}
 	// TokenInvalid 鏃犳晥鐨凾oken淇℃伅

--
Gitblit v1.8.0