935090232@qq.com
2021-10-28 248f33ff3b981a15b4adf26880e24852809561d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.matrix.core.enums;
 
import com.matrix.system.hive.hievEnum.SmsPlatformEnum;
import com.matrix.system.hive.hievEnum.SmsTypeEnum;
 
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
/**
 * TODO 这里后期改成自动扫描包下面的特定注解,而不是硬编码注册
 */
public class EnumsManager {
 
    static Map<String,List<EnumsShowVo>> showAbleMap =new HashMap<>();
 
    static {
        showAbleMap.put(SmsPlatformEnum.values()[0].getEnumCode(),SmsPlatformEnum.values()[0].getEnumsShowVos());
        showAbleMap.put(SmsTypeEnum.values()[0].getEnumCode(),SmsTypeEnum.values()[0].getEnumsShowVos());
    }
 
    public static List<EnumsShowVo> getShowEnum(String emumCode){
        return showAbleMap.get(emumCode);
    }
 
}