From 7ea5eece501c98a91555a5358931367e78e9d23b Mon Sep 17 00:00:00 2001
From: baizonghao <1719256278@qq.com>
Date: 星期四, 25 五月 2023 15:40:09 +0800
Subject: [PATCH] 11

---
 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