From 9303b69ea569bcb5e581147543a3fd58e90d0d25 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期四, 20 八月 2020 20:05:23 +0800 Subject: [PATCH] add get buckets contrl --- extend/code/code.go | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/extend/code/code.go b/extend/code/code.go index 4e7ef5a..f0c08c4 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, "鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒"} @@ -67,5 +69,6 @@ AddClusterInfoErr = &Code{http.StatusInternalServerError, false, "鍔犲叆鑺傜偣澶辫触锛�"} UpgradeSuccess = &Code{http.StatusOK, true, "鍗囩骇鎴愬姛"} - UpgradeFail = &Code{http.StatusInternalServerError, false, "鍗囩骇澶辫触"} + UpgradeFail = &Code{http.StatusInternalServerError, false, "鍗囩骇澶辫触"} + FailedQuery = &Code{http.StatusInternalServerError, false, "鏌ヨ澶辫触"} ) -- Gitblit v1.8.0