package com.seer.teach.user.admin.response;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @Author: Captain
 * @Description:  给前端响应的父级数据
 * @Time: 2024/1/24 14:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "给前端响应的父级数据")
public class AuthorityRespData {

    @Schema(description = "id")
    private Integer id;

    @Schema(description = "权限编码")
    private String authorityCode;

    @Schema(description = "类型 1.菜单 2.页面 3.按钮")
    private Integer type;

    @Schema(description = "名称")
    private String title;

    @Schema(description = "icon")
    private String icon;

    @Schema(description = "路径")

    private String path;

    @Schema(description = "模板路径")
    private String component;

    @Schema(description = "是否隐藏")
    private Integer hidden;

    @Schema(description = "父级ID")
    private Integer pid;

    @Schema(description = "请求方法")
    private String httpMethod;

    @Schema(description = "类名")
    private String className;

    @Schema(description = "url")
    private String apiPath;

    @Schema(description = "模块")
    private String module;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "子集数据")
    private List<AuthorityRespData> children;

    private String props;

}
