package com.zhgd.xmgl.modules.basicdata.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 获取用户/角色树形菜单权限
 */
@Data
@ApiModel(value = "树形菜单信息(DTO)", description = "MenuTreeDto")
public class MenuTreeDto extends TreeDto{

    @ApiModelProperty(value = "菜单图标")
    private String normalIcon;

    @ApiModelProperty(value = "菜单选中时图标")
    private String checkIcon;

    @ApiModelProperty(value = "菜单类型,0:模块 1:菜单;2:按钮")
    private Integer type;

    @ApiModelProperty(value = "模块ID")
    private Long moduleId;

    @ApiModelProperty(value = "父级ID")
    private Long parentId;

    @ApiModelProperty(value = "子级菜单信息")
    private List<MenuTreeDto> children;

}
