Commit 2e031457 authored by 赵啸非's avatar 赵啸非

添加菜单资源配置

parent 26ab28b3
...@@ -56,6 +56,11 @@ public class MenuTreeSelect implements Serializable { ...@@ -56,6 +56,11 @@ public class MenuTreeSelect implements Serializable {
*/ */
private String perms; private String perms;
/**
* 是否隐藏(0.否,1.是)
*/
private Integer hideChildrenInMenu;
/** /**
* 子节点 * 子节点
*/ */
...@@ -71,6 +76,7 @@ public class MenuTreeSelect implements Serializable { ...@@ -71,6 +76,7 @@ public class MenuTreeSelect implements Serializable {
this.menuType = entity.getMenuType(); this.menuType = entity.getMenuType();
this.visible = entity.getVisible(); this.visible = entity.getVisible();
this.perms = entity.getPerms(); this.perms = entity.getPerms();
this.hideChildrenInMenu = entity.getHideChildrenInMenu();
if(!ObjectUtils.isEmpty(entity.getChildren())){ if(!ObjectUtils.isEmpty(entity.getChildren())){
this.children = entity.getChildren().stream().map(MenuTreeSelect::new).collect(Collectors.toList()); this.children = entity.getChildren().stream().map(MenuTreeSelect::new).collect(Collectors.toList());
} }
...@@ -87,6 +93,7 @@ public class MenuTreeSelect implements Serializable { ...@@ -87,6 +93,7 @@ public class MenuTreeSelect implements Serializable {
node.setMenuType(jsonObject.getInteger("menuType")); node.setMenuType(jsonObject.getInteger("menuType"));
node.setVisible(jsonObject.getInteger("visible")); node.setVisible(jsonObject.getInteger("visible"));
node.setPerms(jsonObject.getString("perms")); node.setPerms(jsonObject.getString("perms"));
node.setHideChildrenInMenu(jsonObject.getInteger("hideChildrenInMenu"));
JSONArray jsonArray = jsonObject.getJSONArray("children"); JSONArray jsonArray = jsonObject.getJSONArray("children");
List<MenuTreeSelect> children = new ArrayList<>(); List<MenuTreeSelect> children = new ArrayList<>();
if(!ObjectUtils.isEmpty(jsonArray)){ if(!ObjectUtils.isEmpty(jsonArray)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment