package cn.lihongjie.coal.permission.dto;

import cn.lihongjie.coal.base.dto.OrgCommonDto;

import lombok.Data;

import org.hibernate.annotations.Comment;

import java.util.List;

@Data
public class PermissionDto extends OrgCommonDto {

    private String parentName;
    private List<ResourceDto> resources;

    private String permissionType;

    private String permissionTypeName;

    @Data
    public static class ResourceDto extends OrgCommonDto {

        //        @OneToMany(mappedBy = "parent")
        //        private List<ResourceDto> children;

        @Comment("资源类型")
        private String type;

        @Comment("资源地址")
        private String url;
    }
}
