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.NotEmpty;
import java.util.Set;


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

    @Schema(description = "权限ID数组")
    @NotEmpty(message = "权限ID数组")
    private Set<Integer> ids;

    @Schema(description = "类型 0.菜单 1.页面 2.按钮")
    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 Integer sort;
}
