package fcb.project.manager.base.entity;

import lombok.Data;

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

/**
 * 2 * @Author: Abner
 * 3 * @Date: 2021/1/21 15:54
 * 4
 */
@Data
public class ContextTokenBean implements Serializable{


    /**
     * departmentName : 集团总部
     * nickName : 管理员
     * roleId : 1345997140642054144
     * departmentId : 1345983116940476416
     * roleName : 集团总部管理员
     * roleKey : admin
     * id : 1346013739830824960
     * resourcesTreeByUserPermission : [{"checked":false,"id":"1349209780403093505","isHeader":"0","level":0,"name":"审核管理","order":"1","resourceKey":"examine","resourceType":"menu","spread":false},{"checked":false,"id":"1349209780403093506","isHeader":"0","level":0,"name":"组织架构","order":"1","resourceKey":"department","resourceType":"menu","spread":false}]
     * userName : 88888888888
     */

    private String departmentName;
    private String nickName;
    private String roleId;
    private String departmentId;
    private String roleName;
    private String roleKey;
    private String id;
    private String userName;
    private List<ResourcesTreeByUserPermissionBean> resourcesTreeByUserPermission;


    @Data
    public static class ResourcesTreeByUserPermissionBean implements Serializable {
        /**
         * checked : false
         * id : 1349209780403093505
         * isHeader : 0
         * level : 0
         * name : 审核管理
         * order : 1
         * resourceKey : examine
         * resourceType : menu
         * spread : false
         */

        private Boolean checked;
        private String id;
        private String isHeader;
        private Integer level;
        private String name;
        private String order;
        private String resourceKey;
        private String resourceType;
        private Boolean spread;

    }
}
