|
@@ -6,7 +6,6 @@ import com.qmth.distributed.print.business.enums.ExamCardStatusEnum;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
-import javax.validation.constraints.NotNull;
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -24,33 +23,26 @@ public class GenericExamCardModelFourParams implements Serializable {
|
|
private Long id;
|
|
private Long id;
|
|
|
|
|
|
@ApiModelProperty(value = "题卡标题")
|
|
@ApiModelProperty(value = "题卡标题")
|
|
- @NotNull(message = "题卡标题不能为空")
|
|
|
|
private String title;
|
|
private String title;
|
|
|
|
|
|
@ApiModelProperty(value = "考试id")
|
|
@ApiModelProperty(value = "考试id")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
- @NotNull(message = "考试id不能为空")
|
|
|
|
private Long examId;
|
|
private Long examId;
|
|
|
|
|
|
@ApiModelProperty(value = "课程id")
|
|
@ApiModelProperty(value = "课程id")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
- @NotNull(message = "课程id不能为空")
|
|
|
|
private Long courseId;
|
|
private Long courseId;
|
|
|
|
|
|
@ApiModelProperty(value = "题卡内容附件")
|
|
@ApiModelProperty(value = "题卡内容附件")
|
|
- @NotNull(message = "题卡内容附件不能为空")
|
|
|
|
private MultipartFile contentFile;
|
|
private MultipartFile contentFile;
|
|
|
|
|
|
@ApiModelProperty(value = "题卡内容附件md5")
|
|
@ApiModelProperty(value = "题卡内容附件md5")
|
|
- @NotNull(message = "题卡内容附件md5不能为空")
|
|
|
|
private String contentMd5;
|
|
private String contentMd5;
|
|
|
|
|
|
@ApiModelProperty(value = "题卡html附件")
|
|
@ApiModelProperty(value = "题卡html附件")
|
|
- @NotNull(message = "题卡html附件不能为空")
|
|
|
|
private MultipartFile htmlContentFile;
|
|
private MultipartFile htmlContentFile;
|
|
|
|
|
|
@ApiModelProperty(value = "题卡html附件md5")
|
|
@ApiModelProperty(value = "题卡html附件md5")
|
|
- @NotNull(message = "题卡html附件md5不能为空")
|
|
|
|
private String htmlContentMd5;
|
|
private String htmlContentMd5;
|
|
|
|
|
|
@ApiModelProperty(value = "备注")
|
|
@ApiModelProperty(value = "备注")
|
|
@@ -58,15 +50,12 @@ public class GenericExamCardModelFourParams implements Serializable {
|
|
|
|
|
|
@ApiModelProperty(value = "题卡规则id")
|
|
@ApiModelProperty(value = "题卡规则id")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
- @NotNull(message = "题卡规则id不能为空")
|
|
|
|
private Long cardRuleId;
|
|
private Long cardRuleId;
|
|
|
|
|
|
@ApiModelProperty(value = "STAGE-暂存,SUBMIT-提交")
|
|
@ApiModelProperty(value = "STAGE-暂存,SUBMIT-提交")
|
|
- @NotNull(message = "提交状态不能为空")
|
|
|
|
private ExamCardStatusEnum status;
|
|
private ExamCardStatusEnum status;
|
|
|
|
|
|
@ApiModelProperty(value = "题卡纸张大小(A3,8K)")
|
|
@ApiModelProperty(value = "题卡纸张大小(A3,8K)")
|
|
- @NotNull(message = "题卡纸张大小不能为空")
|
|
|
|
private String pageSize;
|
|
private String pageSize;
|
|
|
|
|
|
public Long getId() {
|
|
public Long getId() {
|