package com.storlead.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * 用户角色参数
 *
 * @author blank
 * @date 2021-4-6 下午 7:50
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RoleParam对象", description = "角色请求参数对象")
public class UserRoleParam  implements Serializable {

    private static final long serialVersionUID = 4270688918860415511L;

    @ApiModelProperty(value = "用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty(value = "角色列表ID")
    @NotNull(message = "角色id不能为空")
    private Set<Long> roleIds;

}
