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

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 jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * @Author: Captain
 * @Description:  添加系统权限
 * @Time: 2024/1/26 15:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "添加系统权限实体类")
public class AddAuthority {

    @Schema(description = "权限名字")
    private String authorityName;

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

    @Schema(description = "名称")
    @NotBlank(message = "名称不能为空")
    private String title;

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

    @Schema(description = "路径")
    private String path;

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

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

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

    @Schema(description = "父级ID")
    @NotNull(message = "pid不能为空")
    private Integer pid;

    @Schema(description = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;

    private String props;
}
