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.Set;

/**
 * @Author: Captain
 * @Description:  更新角色请求实体类
 * @Time: 2024/1/29 14:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "分配角色请求实体类")
public class AllocRoleReq {

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Integer userId;

    @Schema(description = "角色ID集合")
    @NotNull(message = "角色ID集合不能为空")
    private Set<Integer> roleIds;
}