From 87532065ba0c304817c31628ebb1000f4e308f12 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 02 四月 2022 19:30:24 +0800 Subject: [PATCH] 功能完善 --- app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java | 48 ++++++++++++++++++++++++++++++------------------ 1 files changed, 30 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java b/app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java index 8b14a25..111e46f 100644 --- a/app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java +++ b/app/src/main/java/com/yeshi/makemoney/app/entity/config/SystemConfigKey.java @@ -8,35 +8,47 @@ */ 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, "娴嬭瘯璐﹀彿"), //杩斿洖缁欏墠绔殑鏁版嵁 - kefu("瀹㈡湇閾炬帴"), - course("鏁欑▼閾炬帴"), - unRegister("娉ㄩ攢閾炬帴"), - privacyComplain("闅愮鎶曡瘔閾炬帴"), - vipLink("浼氬憳閾炬帴"), + kefu(SystemConfigType.common, "瀹㈡湇閾炬帴"), + course(SystemConfigType.common, "鏁欑▼閾炬帴"), + unRegister(SystemConfigType.common, "娉ㄩ攢閾炬帴"), + privacyComplain(SystemConfigType.common, "闅愮鎶曡瘔閾炬帴"), + vipLink(SystemConfigType.common, "浼氬憳閾炬帴"), //璧勯噾鐩稿叧閰嶇疆 - extractConfig("鎻愮幇閰嶇疆"); + extractConfig(SystemConfigType.extract, "鎻愮幇閰嶇疆"), + //鍥㈤槦鍒嗘垚姣斾緥閰嶇疆 + teamFirstDivideRate(SystemConfigType.team, "鍥㈤槦涓�绾у垎鎴愭瘮渚嬶紙0-1锛�"), + teamSecondDivideRate(SystemConfigType.team, "鍥㈤槦浜岀骇鍒嗘垚姣斾緥锛�0-1锛�"), + ; + 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