package cn.reghao.bnt.web.admin.model.dto;

import lombok.Data;

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

/**
 * @author reghao
 * @date 2021-07-14 09:37:16
 */
@Data
public class AccountRole {
    @NotNull(message = "userId 不能为 NULL")
    private Integer userId;
    @NotNull(message = "用户角色不能为 NULL")
    @Size(min = 1, max = 10, message = "用户角色数量为 1~10")
    private Set<String> roles;
}
