|
@@ -4,6 +4,7 @@ import com.zanxiang.game.module.base.pojo.enums.GameAuthEnum;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -25,14 +26,14 @@ public class GameAuthAddParam {
|
|
|
/**
|
|
|
* 用户id列表
|
|
|
*/
|
|
|
- @NotNull(message = "用户id列表不可为空")
|
|
|
+ @NotEmpty(message = "用户id列表不可为空")
|
|
|
@ApiModelProperty(notes = "用户id列表, 调接口, 从接口中给的人中选择")
|
|
|
private List<Long> userIdList;
|
|
|
|
|
|
/**
|
|
|
* 游戏授权列表
|
|
|
*/
|
|
|
- @NotNull(message = "游戏id列表不可为空")
|
|
|
+ @NotEmpty(message = "游戏id列表不可为空")
|
|
|
@ApiModelProperty(notes = "游戏id列表, 所有游戏下拉选择")
|
|
|
private List<GameAuthBean> gameAuthList;
|
|
|
|