package com.fdage.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class ResourceTree {

    private Long id;

    private String name;

    private Long parentId;

    @JSONField(serialize = false)
    private boolean checked = false;

    @JSONField(serialize = false)
    private boolean spread = false;

    @JSONField(serialize = false)
    private String isHeader = "0";

    @JSONField(serialize = false)
    private String url;

    @JSONField(serialize = false)
    private String icon;

    @JSONField(serialize = false)
    private String resourceKey;

    @JSONField(serialize = false)
    private String resourceType;

    @JSONField(serialize = false)
    private String order = "1";

    // 子菜单/或按钮
    private List<ResourceTree> children;

    @JSONField(serialize = false)
    private int level;

    // 默认都没有权限
    private boolean authority ;


}
