|
|
@@ -3,6 +3,7 @@ package cn.reghao.tnb.content.app.exam.model.vo;
|
|
|
import cn.reghao.tnb.content.app.exam.model.po.Paper;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @author reghao
|
|
|
@@ -15,13 +16,15 @@ public class PaperDetail {
|
|
|
private int duration;
|
|
|
private int totalScore;
|
|
|
private List<QuestionInfo> questions;
|
|
|
+ private Map<Integer, List<QuestionInfo>> questionMap;
|
|
|
|
|
|
- public PaperDetail(Paper paper, List<QuestionInfo> questions) {
|
|
|
+ public PaperDetail(Paper paper, List<QuestionInfo> questions, Map<Integer, List<QuestionInfo>> questionMap) {
|
|
|
this.paperId = paper.getId();
|
|
|
this.name = paper.getName();
|
|
|
this.description = paper.getDescription();
|
|
|
this.duration = paper.getDuration();
|
|
|
this.totalScore = paper.getTotalScore();
|
|
|
this.questions = questions;
|
|
|
+ this.questionMap = questionMap;
|
|
|
}
|
|
|
}
|