package com.gkhy.exam.institutionalaccess.model.req; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.*; import java.math.BigDecimal; @Data public class ThQuestionBankReqDTO { @ApiModelProperty("题库uuid") @NotBlank(message = "题库唯一标识不能为空") @Pattern(regexp = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",message = "uuid格式不正确") private String uuid; @NotBlank(message = "题库名称不能为空") @ApiModelProperty("题库名称") private String name; @NotNull(message = "题库题目总数不能为空") @Min(value = 0,message = "题库题目总数格式不正确") @ApiModelProperty("题库题目总数") private Integer totalCount; @NotNull(message = "单选题数量不能为空") @Min(value = 0,message = "单选题数量格式不正确") @ApiModelProperty("单选题数量") private Integer singleCount; @NotNull(message = "多选题数量不能为空") @Min(value = 0,message = "多选题数量格式不正确") @ApiModelProperty("多选题数量") private Integer multiCount; @NotNull(message = "判断题数量不能为空") @Min(value = 0,message = "判读题数量格式不正确") @ApiModelProperty("判断题数量") private Integer judgeCount; @NotNull(message = "简答题数量不能为空") @Min(value = 0,message = "简答题数量格式不正确") @ApiModelProperty("简答题数量") private Integer easyCount; @ApiModelProperty("混合题数量") private Integer mixCount; @ApiModelProperty("其他题目数量") private Integer otherCount; //删除标志(0代表存在 2代表删除) private Byte delFlag; }