调整接口

This commit is contained in:
TinyAnts
2023-03-31 15:34:47 +08:00
parent 6a977e75e4
commit 8004ee15ea
2 changed files with 27 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
package com.mdd.common.enums;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
public enum LogMoneyEnum {
/**
@@ -56,4 +61,20 @@ public enum LogMoneyEnum {
return null;
}
/**
* 根据编码获取Msg
*
* @author fzr
* @return String
*/
public static List<Map<Integer, String>> getTypeList(){
List<Map<Integer, String>> list = new LinkedList<>();
for(LogMoneyEnum enumItem : LogMoneyEnum.values()) {
Map<Integer, String> map = new LinkedHashMap<>();
map.put(enumItem.getCode(), enumItem.getMsg());
list.add(map);
}
return list;
}
}