|
@@ -12,6 +12,7 @@ import cn.com.qmth.examcloud.app.service.ExamAdminService;
|
|
|
import cn.com.qmth.examcloud.app.service.NetExamService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -81,8 +82,8 @@ public class PracticeExamRestController {
|
|
|
|
|
|
@ApiOperation(value = "保存或更新考生作答的某个试题答案接口")
|
|
|
@RequestMapping(value = "/exam/record/paper/question/answer/update", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
- public Result updateExamRecordPaperQuestionAnswer(@RequestHeader String key, @RequestHeader String token, @RequestParam String examQuestionId, @RequestParam String studentAnswer) throws Exception {
|
|
|
- return netExamService.updateExamRecordPaperQuestionAnswer(key, token, examQuestionId, studentAnswer);
|
|
|
+ public Result updateExamRecordPaperQuestionAnswer(@RequestHeader String key, @RequestHeader String token, @RequestParam String order, @RequestParam String studentAnswer) throws Exception {
|
|
|
+ return netExamService.updateExamRecordPaperQuestionAnswer(key, token, order, studentAnswer);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "当前练习的交卷接口")
|
|
@@ -132,5 +133,11 @@ public class PracticeExamRestController {
|
|
|
public Result updateExamRecordQuestionAudioPlayTimes(@RequestHeader String key, @RequestHeader String token, @RequestParam String questionId, @RequestParam String mediaName) throws Exception {
|
|
|
return netExamService.updateExamRecordQuestionAudioPlayTimes(key, token, questionId, mediaName);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "更新当前试题的音频已播放次数接口")
|
|
|
+ @RequestMapping(value = "/exam/practice/before/{examId}/{type}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
+ public Result getBeforeExamRemark(@RequestHeader String key, @RequestHeader String token, @PathVariable Long examId, @PathVariable String type) throws Exception {
|
|
|
+ return examAdminService.getBeforeExamRemark(key, token, examId, type);
|
|
|
+ }
|
|
|
|
|
|
}
|