From a93cecfb49c06cd39f363bc6202a8779ab15b06e Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期一, 26 十二月 2022 17:16:17 +0800
Subject: [PATCH] fix: 工作台群消息
---
src/main/java/com/example/jz/enums/BusinessHttpStatus.java | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/src/main/java/com/example/jz/enums/BusinessHttpStatus.java b/src/main/java/com/example/jz/enums/BusinessHttpStatus.java
index acb2208..5578fbc 100644
--- a/src/main/java/com/example/jz/enums/BusinessHttpStatus.java
+++ b/src/main/java/com/example/jz/enums/BusinessHttpStatus.java
@@ -3,41 +3,33 @@
public enum BusinessHttpStatus {
// 鏈櫥褰�
- UNAUTHORIZED(401, "鏈巿鏉�");
+ UNAUTHORIZED(401, "鏈櫥褰�"),
+ // 鏈煡寮傚父
+ BAD_EXCEPTION(10000, "绯荤粺寮傚父"),
+ // 鎴愬姛
+ SUCCESS(200, "鎴愬姛");
private final int value;
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