package com.seer.teach.user.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Schema(description = "用户权限信息")
@Getter
@Setter
public class UserPermissionDTO {

    @Schema(description = "用户信息")
    private UserInfoDTO userInfo;

    @Schema(description = "权限信息")
    private List<PermissionDTO> permissions;

    @Getter
    @Setter
    public static class PermissionDTO {

        private Long id;

        private String authorityCode;

        private String httpMethod;
        private String apiPath;
    }
}