zhuo
2025-02-26 3dbbf41e66f433784cda81b56b8b97917f284ff5
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java
@@ -11,7 +11,7 @@
/**
 * Treeselect树结构实体类
 *
 *
 * @author ruoyi
 */
public class TreeSelect implements Serializable
@@ -23,6 +23,12 @@
    /** 节点名称 */
    private String label;
    /** 是否可以选择仅看我, 0:否, 1:是 */
    private Integer isRersonalButton;
    /** 是否确认只看我, 0:否, 1:是 */
    private Integer isRersonal;
    /** 节点禁用 */
    private boolean disabled = false;
@@ -48,6 +54,8 @@
    {
        this.id = menu.getMenuId();
        this.label = menu.getMenuName();
        this.isRersonalButton = menu.getIsRersonalButton();
        this.isRersonal = menu.getIsRersonal();
        this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
    }
@@ -90,4 +98,24 @@
    {
        this.children = children;
    }
    public Integer getIsRersonalButton()
    {
        return isRersonalButton;
    }
    public void setIsRersonalButton(Integer isRersonalButton)
    {
        this.isRersonalButton = isRersonalButton;
    }
    public Integer getIsRersonal()
    {
        return isRersonal;
    }
    public void setIsRersonal(Integer isRersonalButton)
    {
        this.isRersonal = isRersonal;
    }
}