Răsfoiți Sursa

修改对外接口的名称

lideyin 4 ani în urmă
părinte
comite
cfd232da70

+ 2 - 2
examcloud-exchange-outer-api-provider/src/main/java/cn/com/qmth/examcloud/exchange/outer/api/provider/ExamQuestionOuterServiceProvider.java

@@ -258,7 +258,7 @@ public class ExamQuestionOuterServiceProvider extends ControllerSupport implemen
             subPaperQues.setQuestionId(subQues.getQuestionId());
             subPaperQuesList.add(subPaperQues);
         }
-        osb.setSubjectives(subPaperQuesList);
+        osb.setQuestions(subPaperQuesList);
 
         resp.setSubjectivePaper(osb);
 
@@ -491,7 +491,7 @@ public class ExamQuestionOuterServiceProvider extends ControllerSupport implemen
 
             OuterSectionCollectionBean stuAnswerResult = transferFrom(formattedStudentAnswer);
 
-            resultBean.setStudentAnswer(stuAnswerResult);
+            resultBean.setAnswer(stuAnswerResult);
 
             resultList.add(resultBean);
         }

+ 5 - 5
examcloud-exchange-outer-api/src/main/java/cn/com/qmth/examcloud/exchange/outer/api/bean/OuterSubjectivePaperBean.java

@@ -27,7 +27,7 @@ public class OuterSubjectivePaperBean implements JsonSerializable{
 	private String subjectName;
 
 	@ApiModelProperty(value = "主观题集合", example = "[]", required = true)
-	private List<OuterSubjectivePaperQuestionBean> subjectives;
+	private List<OuterSubjectivePaperQuestionBean> questions;
 
 	public Long getExamId() {
 		return examId;
@@ -53,11 +53,11 @@ public class OuterSubjectivePaperBean implements JsonSerializable{
 		this.subjectName = subjectName;
 	}
 
-	public List<OuterSubjectivePaperQuestionBean> getSubjectives() {
-		return subjectives;
+	public List<OuterSubjectivePaperQuestionBean> getQuestions() {
+		return questions;
 	}
 
-	public void setSubjectives(List<OuterSubjectivePaperQuestionBean> subjectives) {
-		this.subjectives = subjectives;
+	public void setQuestions(List<OuterSubjectivePaperQuestionBean> questions) {
+		this.questions = questions;
 	}
 }

+ 5 - 5
examcloud-exchange-outer-api/src/main/java/cn/com/qmth/examcloud/exchange/outer/api/bean/OuterSubjectiveQuestionRecordBean.java

@@ -24,7 +24,7 @@ public class OuterSubjectiveQuestionRecordBean implements JsonSerializable{
 	private String questionId;
 
 	@ApiModelProperty(value = "学生答案", example = "{}", required = false)
-	private OuterSectionCollectionBean studentAnswer;
+	private OuterSectionCollectionBean answer;
 
 	public Integer getMainNumber() {
 		return mainNumber;
@@ -50,11 +50,11 @@ public class OuterSubjectiveQuestionRecordBean implements JsonSerializable{
 		this.questionId = questionId;
 	}
 
-	public OuterSectionCollectionBean getStudentAnswer() {
-		return studentAnswer;
+	public OuterSectionCollectionBean getAnswer() {
+		return answer;
 	}
 
-	public void setStudentAnswer(OuterSectionCollectionBean studentAnswer) {
-		this.studentAnswer = studentAnswer;
+	public void setAnswer(OuterSectionCollectionBean answer) {
+		this.answer = answer;
 	}
 }