wangwei hace 6 años
padre
commit
a50b67aeab

+ 0 - 30
src/main/java/cn/com/qmth/examcloud/question/core/DefaultQuestion.java

@@ -18,16 +18,6 @@ public class DefaultQuestion implements Question {
 	 */
 	private String id;
 
-	/**
-	 * 题结构体
-	 */
-	private String body;
-
-	/**
-	 * 版本号
-	 */
-	private String version;
-
 	/**
 	 * 题型
 	 */
@@ -53,26 +43,6 @@ public class DefaultQuestion implements Question {
 		this.id = id;
 	}
 
-	@Override
-	public String getBody() {
-		return body;
-	}
-
-	@Override
-	public void setBody(String body) {
-		this.body = body;
-	}
-
-	@Override
-	public String getVersion() {
-		return version;
-	}
-
-	@Override
-	public void setVersion(String version) {
-		this.version = version;
-	}
-
 	@Override
 	public QuestionType getQuestionType() {
 		return questionType;

+ 48 - 8
src/main/java/cn/com/qmth/examcloud/question/core/Question.java

@@ -12,28 +12,68 @@ import java.util.List;
  */
 public interface Question extends Serializable {
 
+	/**
+	 * 获取题ID
+	 *
+	 * @author WANGWEI
+	 * @return
+	 */
 	public String getId();
 
+	/**
+	 * 设置题ID
+	 *
+	 * @author WANGWEI
+	 * @param id
+	 */
 	public void setId(String id);
 
-	public String getBody();
-
-	public void setBody(String body);
-
-	public String getVersion();
-
-	public void setVersion(String version);
-
+	/**
+	 * 获取题型
+	 *
+	 * @author WANGWEI
+	 * @return
+	 */
 	public QuestionType getQuestionType();
 
+	/**
+	 * 设置题型
+	 *
+	 * @author WANGWEI
+	 * @param questionType
+	 */
 	public void setQuestionType(QuestionType questionType);
 
+	/**
+	 * 获取主版本
+	 *
+	 * @author WANGWEI
+	 * @return
+	 */
 	public QuestionStructure getMasterVersion();
 
+	/**
+	 * 设置主版本
+	 *
+	 * @author WANGWEI
+	 * @param masterVersion
+	 */
 	public void setMasterVersion(QuestionStructure masterVersion);
 
+	/**
+	 * 获取分支
+	 *
+	 * @author WANGWEI
+	 * @return
+	 */
 	public List<QuestionStructure> getBranchVersionList();
 
+	/**
+	 * 设置分支
+	 *
+	 * @author WANGWEI
+	 * @param branchVersionList
+	 */
 	public void setBranchVersionList(List<QuestionStructure> branchVersionList);
 
 }