From 9ed60f22de26f724e68f89d30f2db9eef2c5d652 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 14 十二月 2022 14:28:11 +0800 Subject: [PATCH] update 优化 minio安装警告 使用新版本参数 --- ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java | 44 ++++++++++++++++++++++++-------------------- 1 files changed, 24 insertions(+), 20 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java index d60afee..f007b8c 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java @@ -2,88 +2,92 @@ /** * 杩斿洖鐘舵�佺爜 - * - * @author ruoyi + * + * @author Lion Li */ -public class HttpStatus -{ +public interface HttpStatus { /** * 鎿嶄綔鎴愬姛 */ - public static final int SUCCESS = 200; + int SUCCESS = 200; /** * 瀵硅薄鍒涘缓鎴愬姛 */ - public static final int CREATED = 201; + int CREATED = 201; /** * 璇锋眰宸茬粡琚帴鍙� */ - public static final int ACCEPTED = 202; + int ACCEPTED = 202; /** * 鎿嶄綔宸茬粡鎵ц鎴愬姛锛屼絾鏄病鏈夎繑鍥炴暟鎹� */ - public static final int NO_CONTENT = 204; + int NO_CONTENT = 204; /** * 璧勬簮宸茶绉婚櫎 */ - public static final int MOVED_PERM = 301; + int MOVED_PERM = 301; /** * 閲嶅畾鍚� */ - public static final int SEE_OTHER = 303; + int SEE_OTHER = 303; /** * 璧勬簮娌℃湁琚慨鏀� */ - public static final int NOT_MODIFIED = 304; + int NOT_MODIFIED = 304; /** * 鍙傛暟鍒楄〃閿欒锛堢己灏戯紝鏍煎紡涓嶅尮閰嶏級 */ - public static final int BAD_REQUEST = 400; + int BAD_REQUEST = 400; /** * 鏈巿鏉� */ - public static final int UNAUTHORIZED = 401; + int UNAUTHORIZED = 401; /** * 璁块棶鍙楅檺锛屾巿鏉冭繃鏈� */ - public static final int FORBIDDEN = 403; + int FORBIDDEN = 403; /** * 璧勬簮锛屾湇鍔℃湭鎵惧埌 */ - public static final int NOT_FOUND = 404; + int NOT_FOUND = 404; /** * 涓嶅厑璁哥殑http鏂规硶 */ - public static final int BAD_METHOD = 405; + int BAD_METHOD = 405; /** * 璧勬簮鍐茬獊锛屾垨鑰呰祫婧愯閿� */ - public static final int CONFLICT = 409; + int CONFLICT = 409; /** * 涓嶆敮鎸佺殑鏁版嵁锛屽獟浣撶被鍨� */ - public static final int UNSUPPORTED_TYPE = 415; + int UNSUPPORTED_TYPE = 415; /** * 绯荤粺鍐呴儴閿欒 */ - public static final int ERROR = 500; + int ERROR = 500; /** * 鎺ュ彛鏈疄鐜� */ - public static final int NOT_IMPLEMENTED = 501; + int NOT_IMPLEMENTED = 501; + + /** + * 绯荤粺璀﹀憡娑堟伅 + */ + int WARN = 601; } -- Gitblit v1.9.3