From cd59ededbf05a0ae73b8f4944fbf40a1fb01d28a Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期一, 11 十一月 2024 18:03:43 +0800
Subject: [PATCH] 错题详情

---
 src/main/java/com/ycl/jxkg/base/Result.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/base/Result.java b/src/main/java/com/ycl/jxkg/base/Result.java
index 32ede1a..977d7fe 100644
--- a/src/main/java/com/ycl/jxkg/base/Result.java
+++ b/src/main/java/com/ycl/jxkg/base/Result.java
@@ -83,6 +83,19 @@
     }
 
     /**
+     * Ok rest response.
+     *
+     * @return the rest response
+     */
+    public static Result ok(String msg) {
+        SystemCode systemCode = SystemCode.OK;
+        Result restResponse = new Result();
+        restResponse.put("code", systemCode.getCode());
+        restResponse.put("message", msg);
+        return restResponse;
+    }
+
+    /**
      * Gets code.
      *
      * @return the code

--
Gitblit v1.8.0