package com.crm.rely.backend.core.dto.user.role;

import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author houn
 */
@Data
public class UserNodeDisplayDto {

    private Long id;

    private String name;

    private String code;

    private String link;

    private String icon;

    private Boolean show = false;

    private String tId;
    /**
     * 0:节点，1：按钮
     */
    private Integer type = 0;

    private Long pid;

    private Integer subIndex;

    private List<UserNodeDisplayDto> children = new ArrayList<UserNodeDisplayDto>();

    private Map<String, UserActionDisplayDto> btns = new HashMap<>();

}
