|
@@ -10,6 +10,7 @@ package cn.com.qmth.examcloud.app.controller;
|
|
|
import cn.com.qmth.examcloud.app.model.Result;
|
|
|
import cn.com.qmth.examcloud.app.service.ExamAdminService;
|
|
|
import cn.com.qmth.examcloud.app.service.NetExamService;
|
|
|
+import cn.com.qmth.examcloud.app.service.QuestionPoolService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
@@ -31,6 +32,8 @@ public class PracticeExamRestController {
|
|
|
private ExamAdminService examAdminService;
|
|
|
@Autowired
|
|
|
private NetExamService netExamService;
|
|
|
+ @Autowired
|
|
|
+ private QuestionPoolService questionPoolService;
|
|
|
|
|
|
@ApiOperation(value = "获取某考生的“考试批次”列表接口")
|
|
|
@RequestMapping(value = "/exam/practice/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@@ -139,5 +142,23 @@ public class PracticeExamRestController {
|
|
|
public Result getBeforeExamRemark(@RequestHeader String key, @RequestHeader String token, @PathVariable Long examId, @PathVariable String type) throws Exception {
|
|
|
return examAdminService.getBeforeExamRemark(key, token, examId, type);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询练习记录配置信息")
|
|
|
+ @RequestMapping(value = "/exam/practice/end/findExamRecordDataEntity/{examRecordDataId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
+ public Result findExamRecordDataEntity(@RequestHeader String key, @RequestHeader String token, @PathVariable Long examRecordDataId) throws Exception {
|
|
|
+ return netExamService.findExamRecordDataEntity(key, token, examRecordDataId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询练习记录试题列表")
|
|
|
+ @RequestMapping(value = "/exam/practice/end/findExamRecordDataEntity/{examRecordDataId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
+ public Result getExamRecordQuestions(@RequestHeader String key, @RequestHeader String token, @PathVariable Long examRecordDataId) throws Exception {
|
|
|
+ return netExamService.getExamRecordQuestions(key, token, examRecordDataId);
|
|
|
+ }
|
|
|
|
|
|
+ @ApiOperation(value = "查询某个试题内容")
|
|
|
+ @RequestMapping(value = "/exam/practice/end/question", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
+ public Result getQuestion(@RequestHeader String key, @RequestHeader String token, @RequestParam String courseCode,
|
|
|
+ @RequestParam Long examId, @RequestParam String groupCode, @RequestParam String questionId) throws Exception {
|
|
|
+ return questionPoolService.getQuestion(key, token, courseCode, examId, groupCode, questionId);
|
|
|
+ }
|
|
|
}
|