From cb4766eb80edbb1f264b46a0da577d57f8d12a8f Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期五, 05 六月 2020 18:46:44 +0800 Subject: [PATCH] add log --- extend/code/code.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/extend/code/code.go b/extend/code/code.go index 3ef6457..3e18ab7 100644 --- a/extend/code/code.go +++ b/extend/code/code.go @@ -14,6 +14,7 @@ // Success 璇锋眰澶勭悊鎴愬姛 Success = &Code{http.StatusOK, true, "璇锋眰澶勭悊鎴愬姛"} AddSuccess = &Code{http.StatusOK, true, "娣诲姞鎴愬姛"} + UploadSuccess = &Code{ http.StatusOK, true, "涓婁紶鎴愬姛"} UpdateSuccess = &Code{http.StatusOK, true, "鏇存柊鎴愬姛"} UpdateFail = &Code{http.StatusBadRequest, false, "鏇存柊澶辫触"} DelSuccess = &Code{http.StatusOK, true, "鍒犻櫎鎴愬姛"} @@ -29,6 +30,7 @@ UploadSuffixError = &Code{http.StatusBadRequest, false, "璇ヤ笂浼犳枃浠舵牸寮忕洰鍓嶆殏涓嶆敮鎸�"} // UploadSizeLimit 鐩墠涓婁紶浠呮敮鎸佸皬浜�5M鐨勬枃浠跺唴瀹� UploadSizeLimit = &Code{http.StatusBadRequest, false, "鐩墠涓婁紶浠呮敮鎸佸皬浜�5M鐨勬枃浠跺唴瀹�"} + InvalidRequest = &Code{http.StatusBadRequest, false, "璇锋眰鏃犳晥"} LoginSuccess = &Code{http.StatusOK, true, "鐧诲綍鎴愬姛"} // SigninInfoError 璐︽埛鍚嶆垨瀵嗙爜鏈夎 LoginInfoError = &Code{http.StatusUnauthorized, false, "鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒"} @@ -65,4 +67,7 @@ CreateFirstNodeErr = &Code{http.StatusInternalServerError, false, "鍒涘缓鑺傜偣澶辫触锛�"} QueryClusterInfoErr = &Code{http.StatusInternalServerError, false, "鏌ヨ澶辫触锛岃纭鎮ㄧ殑ip鏄纭殑锛�"} AddClusterInfoErr = &Code{http.StatusInternalServerError, false, "鍔犲叆鑺傜偣澶辫触锛�"} + + UpgradeSuccess = &Code{http.StatusOK, true, "鍗囩骇鎴愬姛"} + UpgradeFail = &Code{http.StatusInternalServerError, false, "鍗囩骇澶辫触"} ) -- Gitblit v1.8.0