|
@@ -2,7 +2,9 @@ package com.dragon.tj.portal.common.enums.log;
|
|
|
|
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Maps;
|
|
import lombok.Getter;
|
|
import lombok.Getter;
|
|
|
|
+import org.apache.commons.compress.utils.Lists;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -48,11 +50,22 @@ public enum ModuleEnum {
|
|
|
|
|
|
public static Map<String, String> getMap() {
|
|
public static Map<String, String> getMap() {
|
|
Map<String, String> map = Maps.newHashMap();
|
|
Map<String, String> map = Maps.newHashMap();
|
|
- for (ModuleEnum module: values()) {
|
|
|
|
|
|
+ for (ModuleEnum module : values()) {
|
|
map.put(module.getCode(), module.getDesc());
|
|
map.put(module.getCode(), module.getDesc());
|
|
}
|
|
}
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static List<Map<String, String>> getMaps() {
|
|
|
|
+ List<Map<String, String>> list = Lists.newArrayList();
|
|
|
|
+ for (ModuleEnum module : values()) {
|
|
|
|
+ Map<String, String> map = Maps.newHashMap();
|
|
|
|
+ map.put("key", module.getCode());
|
|
|
|
+ map.put("value", module.getDesc());
|
|
|
|
+ list.add(map);
|
|
|
|
+ }
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|