package com.muchinfo.mtp3century.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.List;

@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TreeNode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单编码")
    private String resourceCode;
    @ApiModelProperty(value = "父ID")
    private String parentCode;
    @ApiModelProperty(value = "权限类型 - 1:菜单 2:组件 3:按钮")
    private Integer authType;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "地址类型 - 1:路由 2:外链 3:内联框架")
    private Integer urlType;
    @ApiModelProperty(value = "链接地址")
    private String url;
    @ApiModelProperty(value = "组件名或组件地址")
    private String component;
    @ApiModelProperty(value = "菜单图标")
    private String icon;
    @ApiModelProperty(value = "菜单样式")
    private String className;
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @ApiModelProperty(value = "是否隐藏 - 0:隐藏 1:显示")
    private Integer show;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "子节点")
    private List<TreeNode> children;
}
