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 16:52
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "更新系统权限实体类")
public class UpdateAuthority {

    @Schema(description = "权限ID")
    @NotNull(message = "权限ID不能为空")
    private Integer id;

    @Schema(description = "类型 0.菜单 1.页面 2.按钮")
    @NotNull(message = "类型不能为空")
    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 Integer hidden;

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

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

    private String props;
}
