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.NotNull;
import java.util.List;

/**
 * @Author: Captain
 * @Description: 设置角色权限
 * @Time: 2024/1/29 14:27
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "设置角色权限请求实体类")
public class SetRoleAuthorityRequest {

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

    @Schema(description = "权限数据")
    private List<Integer> authorIds;

}
