| package com.doumee.dao.system.dto; | 
|   | 
| import io.swagger.annotations.ApiModel; | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
|   | 
| import javax.validation.constraints.NotNull; | 
| import java.io.Serializable; | 
| import java.util.List; | 
|   | 
| /** | 
|  * @author Eva.Caesar Liu | 
|  * @date 2023/05/04 18:21 | 
|  */ | 
| @Data | 
| @ApiModel("创建用户角色参数") | 
| public class CreateUserRoleDTO implements Serializable { | 
|   | 
|     @ApiModelProperty(value = "用户ID") | 
|     @NotNull(message = "用户ID不能为空") | 
|     private Integer userId; | 
|   | 
|     @ApiModelProperty(value = "角色ID集") | 
|     @NotNull(message = "角色ID集不能为空") | 
|     private List<Integer> roleIds; | 
|   | 
|     @ApiModelProperty(value = "创建人", hidden = true) | 
|     private Integer createUser; | 
| } |