浏览代码

。。。。

WANG 6 年之前
父节点
当前提交
1d5af433f5

+ 8 - 4
src/main/java/cn/com/qmth/examcloud/question/commons/core/question/AnswerType.java

@@ -9,11 +9,15 @@ package cn.com.qmth.examcloud.question.commons.core.question;
  */
 public enum AnswerType {
 
-	RICH_TEXT("RT", "富文本"),
-
+	STRICT("S", "严格作答(可程序判分.如判断,单选...)"),
+	//
+	TEXT("T", "文本(不可程序判分.如非严格填空,简答...)"),
+	//
 	SINGLE_VIDEO("SV", "单个视频"),
-
-	SINGLE_AUDIO("SA", "单个音频");
+	//
+	SINGLE_AUDIO("SA", "单个音频"),
+	//
+	SINGLE_FILE("SV", "单个文件");
 
 	// ===========================================================================
 

+ 13 - 0
src/main/java/cn/com/qmth/examcloud/question/commons/core/question/DefaultQuestionUnit.java

@@ -34,6 +34,11 @@ public class DefaultQuestionUnit implements Serializable {
 	 */
 	private String[] rightAnswer;
 
+	/**
+	 * 作答类型
+	 */
+	private AnswerType answerType;
+
 	public QuestionType getQuestionType() {
 		return questionType;
 	}
@@ -66,4 +71,12 @@ public class DefaultQuestionUnit implements Serializable {
 		this.rightAnswer = rightAnswer;
 	}
 
+	public AnswerType getAnswerType() {
+		return answerType;
+	}
+
+	public void setAnswerType(AnswerType answerType) {
+		this.answerType = answerType;
+	}
+
 }