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);
|
}
|
|
}
|