From 744cd0a3bc66de73a94e320724b1bb776a6e4080 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期三, 19 十月 2022 17:43:50 +0800
Subject: [PATCH] 更新minlo
---
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