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 | 59 ++++++++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 42 insertions(+), 17 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 755e40c..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,32 +8,57 @@ */ public enum SystemConfigKey { - signKey("绛惧悕Key"), - defaultPortrait("榛樿澶村儚"), - defaultNickNamePrefix("榛樿鏄电О鍓嶇紑"), - wxAppId("寰俊寮�鏀惧钩鍙癆PPId"), - wxAppSecret("寰俊寮�鏀惧钩鍙癆PPSecret"), - aliyunOneKeyAuthAcessKey("闃块噷浜戜竴閿櫥褰昦ppId"), - aliyunOneKeyAuthAcessSecret("闃块噷浜戜竴閿櫥褰昦ppSecret"), - tencentSMSAppId("鑵捐浜戠煭淇PPID"), - tencentSMSAppKey("鑵捐浜戠煭淇PPKey"), - tencentVerifySMSTemplate("鑵捐浜戦獙璇佺爜鐭俊妯℃澘"), - testAccount("娴嬭瘯璐﹀彿"), + 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("瀹㈡湇閾炬帴"), - course("鏁欑▼閾炬帴"), - unRegister("娉ㄩ攢閾炬帴"), - privacyComplain("闅愮鎶曡瘔閾炬帴"), - vipLink("浼氬憳閾炬帴"); + 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