From 38f9471ecf47b7c15b352113bc0f5a2ec1e64e7b Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 16 七月 2024 09:24:13 +0800
Subject: [PATCH] 登录返回vo修改,个人中心接口,用户列表权限验证

---
 src/main/java/com/ycl/jxkg/enums/QuestionTypeEnum.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/enums/QuestionTypeEnum.java b/src/main/java/com/ycl/jxkg/enums/QuestionTypeEnum.java
index 2be650a..1f9370a 100644
--- a/src/main/java/com/ycl/jxkg/enums/QuestionTypeEnum.java
+++ b/src/main/java/com/ycl/jxkg/enums/QuestionTypeEnum.java
@@ -54,6 +54,17 @@
         return name;
     }
 
-
+    public static Integer get(String text){
+        if("".equals(text) || text == null){
+            return null;
+        }
+        QuestionTypeEnum[] enums = QuestionTypeEnum.values();
+        for (QuestionTypeEnum anEnum : enums) {
+            if(anEnum.getName().equals(text)){
+                return anEnum.getCode();
+            }
+        }
+        return null;
+    }
 
 }

--
Gitblit v1.8.0