From 56364722d3ed70d48ec41f567a4e59e5ccbbb868 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 19 五月 2022 17:45:42 +0800
Subject: [PATCH] 增加权限管理

---
 src/main/resources/code/service/app/src/main/java/com/ks/app/entity/config/SystemConfigKey.java |   55 ++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 44 insertions(+), 11 deletions(-)

diff --git a/src/main/resources/code/service/app/src/main/java/com/ks/app/entity/config/SystemConfigKey.java b/src/main/resources/code/service/app/src/main/java/com/ks/app/entity/config/SystemConfigKey.java
index 740dddc..157039c 100644
--- a/src/main/resources/code/service/app/src/main/java/com/ks/app/entity/config/SystemConfigKey.java
+++ b/src/main/resources/code/service/app/src/main/java/com/ks/app/entity/config/SystemConfigKey.java
@@ -8,24 +8,57 @@
  */
 public enum SystemConfigKey {
 
-    signKey("绛惧悕Key"),
-    defaultPortrait("榛樿澶村儚"),
-    defaultNickNamePrefix("榛樿鏄电О鍓嶇紑"),
-    wxAppId("寰俊寮�鏀惧钩鍙癆PPId"),
-    wxAppSecret("寰俊寮�鏀惧钩鍙癆PPSecret"),
-    aliyunOneKeyAuthAcessKey("闃块噷浜戜竴閿櫥褰昦ppId"),
-    aliyunOneKeyAuthAcessSecret("闃块噷浜戜竴閿櫥褰昦ppSecret"),
-    tencentSMSAppId("鑵捐浜戠煭淇PPID"),
-    tencentSMSAppKey("鑵捐浜戠煭淇PPKey"),
-    tencentVerifySMSTemplate("鑵捐浜戦獙璇佺爜鐭俊妯℃澘");
+    signKey(SystemConfigType.system, "绛惧悕Key"),
+    defaultPortrait(SystemConfigType.system, "榛樿澶村儚"),
+    defaultNickNamePrefix(SystemConfigType.system, "榛樿鏄电О鍓嶇紑"),
+    wxAppId(SystemConfigType.system, "寰俊寮�鏀惧钩鍙癆PPId"),
+    wxAppSecret(SystemConfigType.system, "寰俊寮�鏀惧钩鍙癆PPSecret"),
+    aliyunOneKeyAuthAcessKey(SystemConfigType.system, "闃块噷浜戜竴閿櫥褰昦ppId"),
+    aliyunOneKeyAuthAcessSecret(SystemConfigType.system, "闃块噷浜戜竴閿櫥褰昦ppSecret"),
+    tencentSMSAppId(SystemConfigType.system, "鑵捐浜戠煭淇PPID"),
+    tencentSMSAppKey(SystemConfigType.system, "鑵捐浜戠煭淇PPKey"),
+    tencentVerifySMSTemplate(SystemConfigType.system, "鑵捐浜戦獙璇佺爜鐭俊妯℃澘"),
+    testAccount(SystemConfigType.system, "娴嬭瘯璐﹀彿"),
+    emailSender(SystemConfigType.system, "鍙戦�侀偖浠剁殑璐﹀彿涓庡瘑鐮�"),
+    appLink(SystemConfigType.system, "搴旂敤浜屽悎涓�閾炬帴"),
+    androidPushAppCode(SystemConfigType.system, "android鎺ㄩ�佸簲鐢ㄧ紪鐮�"),
+    androidPushActivity(SystemConfigType.system, "android鎺ㄩ�佽惤鍦伴〉Activity"),
+
+    //杩斿洖缁欏墠绔殑鏁版嵁
+    kefu(SystemConfigType.common, "瀹㈡湇閾炬帴"),
+    course(SystemConfigType.common, "鏁欑▼閾炬帴"),
+    unRegister(SystemConfigType.common, "娉ㄩ攢閾炬帴"),
+    privacyComplain(SystemConfigType.common, "闅愮鎶曡瘔閾炬帴"),
+    helpLink(SystemConfigType.common, "甯姪涓績閾炬帴"),
+    disclaimerLink(SystemConfigType.common, "鍏嶈矗澹版槑閾炬帴"),
+
+    //骞垮憡閰嶇疆
+    splashAd(SystemConfigType.ad, "寮�灞忓箍鍛�"),
+    rewardAd(SystemConfigType.ad, "婵�鍔辫棰戝箍鍛�"),
+    exitAppAd(SystemConfigType.ad, "閫�鍑哄簲鐢ㄥ箍鍛�"),
+
+    //璧勯噾鐩稿叧閰嶇疆
+    extractConfig(SystemConfigType.extract, "鎻愮幇閰嶇疆"),
+
+
+
+    ;
+
 
     private String desc;
+
+    private SystemConfigType type;
 
     public String getDesc() {
         return desc;
     }
 
-    private SystemConfigKey(String desc) {
+    public SystemConfigType getType() {
+        return type;
+    }
+
+    private SystemConfigKey(SystemConfigType type, String desc) {
+        this.type = type;
         this.desc = desc;
     }
 

--
Gitblit v1.8.0