mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-01 22:50:44 +08:00
权限
This commit is contained in:
@@ -22,6 +22,7 @@ public class SystemMenu implements Serializable {
|
||||
private String menuIcon;
|
||||
private Integer menuSort;
|
||||
private String perms;
|
||||
private String component;
|
||||
private Integer isDisable;
|
||||
private Long createTime;
|
||||
private Long updateTime;
|
||||
|
||||
@@ -156,6 +156,23 @@ public class ToolsUtil {
|
||||
return JSON.parseObject(json, type);
|
||||
}
|
||||
|
||||
/**
|
||||
* JSON转map
|
||||
*
|
||||
* @author fzr
|
||||
* @param object 对象
|
||||
* @return Map<String, String>
|
||||
*/
|
||||
public static Map<String, String> objectToMap(Object object){
|
||||
Type type = new TypeToken<Map<String, String>>() {}.getType();
|
||||
return JSON.parseObject(JSONObject.toJSONString(object), type);
|
||||
}
|
||||
|
||||
public static List<Map<String, String>> stringToList(String s) {
|
||||
Type type = new TypeToken<List<Map<String, String>>>() {}.getType();
|
||||
return JSON.parseObject(s, type);
|
||||
}
|
||||
|
||||
/**
|
||||
* map合并
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user