package cn.reghao.devops.web.admin.account.model.dto;

import cn.reghao.devops.web.admin.account.model.po.Role;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author reghao
 * @date 2021-07-14 09:37:16
 */
@Data
public class AccountRole {
    @NotNull
    private Integer userId;
    //@Size(min = 1, max = 1, message = "用户有且只能有 1 个角色")
    //private Set<Role> roles;
    @NotNull
    private Role role;
}
