test
parent
d7f51723ae
commit
143297a0d9
|
|
@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -20,7 +21,7 @@ public class QuestionOptionUpdateDTO implements Serializable {
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@ApiModelProperty(value = "是否正确答案 true 是,false 不是", required = true)
|
@ApiModelProperty(value = "是否正确答案 true 是,false 不是", required = true)
|
||||||
@NotBlank(message = "是否正确答案不能为空")
|
@NotNull(message = "是否正确答案不能为空")
|
||||||
private Boolean isCorrect;
|
private Boolean isCorrect;
|
||||||
|
|
||||||
@ApiModelProperty(value = "选项标识:A,B,C,D", required = true)
|
@ApiModelProperty(value = "选项标识:A,B,C,D", required = true)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue