From d759812b05ceffc6021dee9ebf61bc0c22472df3 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期三, 28 十二月 2022 17:41:37 +0800 Subject: [PATCH] fix: 导入和报案方式 --- src/main/java/com/example/jz/enums/BusinessHttpStatus.java | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/example/jz/enums/BusinessHttpStatus.java b/src/main/java/com/example/jz/enums/BusinessHttpStatus.java index 975f63d..5578fbc 100644 --- a/src/main/java/com/example/jz/enums/BusinessHttpStatus.java +++ b/src/main/java/com/example/jz/enums/BusinessHttpStatus.java @@ -4,6 +4,7 @@ // 鏈櫥褰� UNAUTHORIZED(401, "鏈櫥褰�"), + // 鏈煡寮傚父 BAD_EXCEPTION(10000, "绯荤粺寮傚父"), // 鎴愬姛 SUCCESS(200, "鎴愬姛"); @@ -12,35 +13,23 @@ private final String msg; - BusinessHttpStatus(int value, String msg) { this.value = value; this.msg = msg; } - - /** - * Return the integer value of this status code. - */ public int value() { return this.value; } - /** - * Return the msg of this status code. - */ public String getMsg() { return msg; } - /** - * Return a string representation of this status code. - */ @Override public String toString() { return this.value + " " + name(); } - public static BusinessHttpStatus valueOf(int statusCode) { BusinessHttpStatus status = resolve(statusCode); -- Gitblit v1.8.0