| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.Pattern; |
| | | import javax.validation.constraints.*; |
| | | import java.math.BigDecimal; |
| | | |
| | | @Data |
| | |
| | | @ApiModelProperty("题库名称") |
| | | private String name; |
| | | |
| | | @NotEmpty(message = "题库题目总数不能为空") |
| | | @NotNull(message = "题库题目总数不能为空") |
| | | @Min(value = 0,message = "题库题目总数格式不正确") |
| | | @ApiModelProperty("题库题目总数") |
| | | private Integer totalCount; |
| | | |
| | | @NotEmpty(message = "单选题数量不能为空") |
| | | @NotNull(message = "单选题数量不能为空") |
| | | @Min(value = 0,message = "单选题数量格式不正确") |
| | | @ApiModelProperty("单选题数量") |
| | | private Integer singleCount; |
| | | |
| | | @NotEmpty(message = "多选题数量不能为空") |
| | | @NotNull(message = "多选题数量不能为空") |
| | | @Min(value = 0,message = "多选题数量格式不正确") |
| | | @ApiModelProperty("多选题数量") |
| | | private Integer multiCount; |
| | | |
| | | @NotEmpty(message = "判断题数量不能为空") |
| | | @NotNull(message = "判断题数量不能为空") |
| | | @Min(value = 0,message = "判读题数量格式不正确") |
| | | @ApiModelProperty("判断题数量") |
| | | private Integer judgeCount; |
| | | |
| | | @NotEmpty(message = "简答题数量不能为空") |
| | | @NotNull(message = "简答题数量不能为空") |
| | | @Min(value = 0,message = "简答题数量格式不正确") |
| | | @ApiModelProperty("简答题数量") |
| | | private Integer easyCount; |