教育训练处考试制证系统后端
kongzy
2024-10-12 3f03de50c5656611652a24dca8b12b37eb055ac3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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;
}