package com.cf.imes.module.system.controller.admin.permission.vo.permission;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.util.Collections;
import java.util.Set;

@Schema(description = "管理后台 - 分配角色用户 Request VO")
@Data
public class PermissionAssignRoleUserReqVO {

    @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "角色编号不能为空")
    private Long roleId;

    @Schema(description = "用户编号列表", example = "1,3,5")
    @Size(max = 300, message = "关联的用户编号数量不能超过300个")
    private Set<Long> userIds = Collections.emptySet();

    @Schema(description = "组织id")
    private Long organId;

}
