package cn.lihongjie.coal.permission.dto;

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

import lombok.Data;

import org.hibernate.annotations.Comment;

import java.util.*;

@Data
public class PermissionExportDto extends CommonDto {

    private String parentName;
    private List<PermissionDto.ResourceDto> resources;
    private String permissionType;

    private String permissionTypeName;

    @Data
    public static class ResourceDto extends CommonDto {

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

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