package cn.reghao.oss.console.account.model.dto;

import cn.reghao.oss.console.account.model.po.Role;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Set;

/**
 * @author reghao
 * @date 2021-07-14 09:37:16
 */
@Data
public class AccountRole implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer userId;
    @NotNull(message = "用户角色不能为 NULL")
    private Set<Role> roles;
}
