|
@@ -8,9 +8,9 @@
|
|
package cn.com.qmth.examcloud.app.controller;
|
|
package cn.com.qmth.examcloud.app.controller;
|
|
|
|
|
|
import cn.com.qmth.examcloud.app.model.Result;
|
|
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 cn.com.qmth.examcloud.app.service.CoreExamWorkService;
|
|
|
|
+import cn.com.qmth.examcloud.app.service.CoreOeService;
|
|
|
|
+import cn.com.qmth.examcloud.app.service.CoreQuestionService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -31,143 +31,143 @@ import static cn.com.qmth.examcloud.app.model.Constants.PARAM_APP_TOKEN;
|
|
@Api(tags = "在线练习相关接口")
|
|
@Api(tags = "在线练习相关接口")
|
|
public class PracticeExamRestController {
|
|
public class PracticeExamRestController {
|
|
@Autowired
|
|
@Autowired
|
|
- private ExamAdminService examAdminService;
|
|
|
|
|
|
+ private CoreExamWorkService examWorkService;
|
|
@Autowired
|
|
@Autowired
|
|
- private NetExamService netExamService;
|
|
|
|
|
|
+ private CoreOeService oeService;
|
|
@Autowired
|
|
@Autowired
|
|
- private QuestionPoolService questionPoolService;
|
|
|
|
|
|
+ private CoreQuestionService questionService;
|
|
|
|
|
|
@ApiOperation(value = "获取某考生的“考试批次”列表接口")
|
|
@ApiOperation(value = "获取某考生的“考试批次”列表接口")
|
|
@RequestMapping(value = "/exam/practice/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/practice/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getPracticeExamList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String studentId) throws Exception {
|
|
public Result getPracticeExamList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String studentId) throws Exception {
|
|
- return examAdminService.getPracticeExamList(key, token, studentId);
|
|
|
|
|
|
+ return examWorkService.getPracticeExamList(key, token, studentId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取某考试批次下的课程列表接口")
|
|
@ApiOperation(value = "获取某考试批次下的课程列表接口")
|
|
@RequestMapping(value = "/exam/practice/course/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/practice/course/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getPracticeExamCourseList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examId) throws Exception {
|
|
public Result getPracticeExamCourseList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examId) throws Exception {
|
|
- return netExamService.getPracticeExamCourseList(key, token, examId);
|
|
|
|
|
|
+ return oeService.getPracticeExamCourseList(key, token, examId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取当前练习的剩余作答时间接口")
|
|
@ApiOperation(value = "获取当前练习的剩余作答时间接口")
|
|
@RequestMapping(value = "/exam/record/heartbeat", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/heartbeat", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamRecordHeartbeat(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
|
|
public Result getExamRecordHeartbeat(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
|
|
- return netExamService.getExamRecordHeartbeat(key, token);
|
|
|
|
|
|
+ return oeService.getExamRecordHeartbeat(key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考生“开始练习”接口")
|
|
@ApiOperation(value = "考生“开始练习”接口")
|
|
@RequestMapping(value = "/exam/record/start", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/start", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result startPracticeExamRecord(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examStudentId) throws Exception {
|
|
public Result startPracticeExamRecord(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examStudentId) throws Exception {
|
|
- return netExamService.startPracticeExamRecord(key, token, examStudentId);
|
|
|
|
|
|
+ return oeService.startPracticeExamRecord(key, token, examStudentId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取当前练习的试卷大题结构信息接口")
|
|
@ApiOperation(value = "获取当前练习的试卷大题结构信息接口")
|
|
@RequestMapping(value = "/exam/record/paper/struct/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/paper/struct/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamRecordPaperStructList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId) throws Exception {
|
|
public Result getExamRecordPaperStructList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId) throws Exception {
|
|
- return netExamService.getExamRecordPaperStructList(key, token, examRecordId);
|
|
|
|
|
|
+ return oeService.getExamRecordPaperStructList(key, token, examRecordId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取当前练习的考试基本信息接口")
|
|
@ApiOperation(value = "获取当前练习的考试基本信息接口")
|
|
@RequestMapping(value = "/exam/info/{examId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/info/{examId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamInfo(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examId) throws Exception {
|
|
public Result getExamInfo(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examId) throws Exception {
|
|
- return examAdminService.getExamInfo(key, token, examId);
|
|
|
|
|
|
+ return examWorkService.getExamInfo(key, token, examId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取当前练习的试卷试题列表接口")
|
|
@ApiOperation(value = "获取当前练习的试卷试题列表接口")
|
|
@RequestMapping(value = "/exam/record/paper/question/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/paper/question/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamRecordPaperQuestionList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
|
|
public Result getExamRecordPaperQuestionList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
|
|
- return netExamService.getExamRecordPaperQuestionList(key, token);
|
|
|
|
|
|
+ return oeService.getExamRecordPaperQuestionList(key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取考生作答的某个试题的详细信息接口")
|
|
@ApiOperation(value = "获取考生作答的某个试题的详细信息接口")
|
|
@RequestMapping(value = "/exam/record/paper/question/detail/{questionId}/{examRecordId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/paper/question/detail/{questionId}/{examRecordId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result questionDetail(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable String questionId, @PathVariable String examRecordId) throws Exception {
|
|
public Result questionDetail(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable String questionId, @PathVariable String examRecordId) throws Exception {
|
|
- return netExamService.getExamRecordPaperQuestionDetail(key, token, questionId, examRecordId);
|
|
|
|
|
|
+ return oeService.getExamRecordPaperQuestionDetail(key, token, questionId, examRecordId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "保存或更新考生作答的某个试题答案接口")
|
|
@ApiOperation(value = "保存或更新考生作答的某个试题答案接口")
|
|
@RequestMapping(value = "/exam/record/paper/question/answer/update", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/paper/question/answer/update", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result updateExamRecordPaperQuestionAnswer(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam Integer order, @RequestParam String studentAnswer) throws Exception {
|
|
public Result updateExamRecordPaperQuestionAnswer(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam Integer order, @RequestParam String studentAnswer) throws Exception {
|
|
- return netExamService.updateExamRecordPaperQuestionAnswer(key, token, order, studentAnswer);
|
|
|
|
|
|
+ return oeService.updateExamRecordPaperQuestionAnswer(key, token, order, studentAnswer);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "当前练习的交卷接口")
|
|
@ApiOperation(value = "当前练习的交卷接口")
|
|
@RequestMapping(value = "/exam/record/submit", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/submit", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result submitPracticeExamRecord(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
|
|
public Result submitPracticeExamRecord(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
|
|
- return netExamService.submitPracticeExamRecord(key, token);
|
|
|
|
|
|
+ return oeService.submitPracticeExamRecord(key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "检查考生当前是否有正在进行的练习记录接口")
|
|
@ApiOperation(value = "检查考生当前是否有正在进行的练习记录接口")
|
|
@RequestMapping(value = "/exam/record/online/check", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/online/check", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result checkOnlineExamRecord(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
|
|
public Result checkOnlineExamRecord(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token) throws Exception {
|
|
- return netExamService.checkOnlineExamRecord(key, token);
|
|
|
|
|
|
+ return oeService.checkOnlineExamRecord(key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取当前考生的当前课程的历史练习记录接口")
|
|
@ApiOperation(value = "获取当前考生的当前课程的历史练习记录接口")
|
|
@RequestMapping(value = "/exam/record/practice/course/history/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/practice/course/history/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamRecordPracticeHistoryList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examStudentId) throws Exception {
|
|
public Result getExamRecordPracticeHistoryList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examStudentId) throws Exception {
|
|
- return netExamService.getExamRecordPracticeHistoryList(key, token, examStudentId);
|
|
|
|
|
|
+ return oeService.getExamRecordPracticeHistoryList(key, token, examStudentId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取成绩报告的答题情况统计接口")
|
|
@ApiOperation(value = "获取成绩报告的答题情况统计接口")
|
|
@RequestMapping(value = "/exam/record/total", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/total", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamRecordTotalInfo(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId) throws Exception {
|
|
public Result getExamRecordTotalInfo(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId) throws Exception {
|
|
- return netExamService.getExamRecordTotalInfo(key, token, examRecordId);
|
|
|
|
|
|
+ return oeService.getExamRecordTotalInfo(key, token, examRecordId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取作答的题列表接口")
|
|
@ApiOperation(value = "获取作答的题列表接口")
|
|
@RequestMapping(value = "/exam/record/paper/question/detail/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/paper/question/detail/list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamRecordQuestionDetailList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId) throws Exception {
|
|
public Result getExamRecordQuestionDetailList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId) throws Exception {
|
|
- return netExamService.getExamRecordQuestionDetailList(key, token, examRecordId);
|
|
|
|
|
|
+ return oeService.getExamRecordQuestionDetailList(key, token, examRecordId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取当前试题的音频已播放次数接口")
|
|
@ApiOperation(value = "获取当前试题的音频已播放次数接口")
|
|
@RequestMapping(value = "/exam/record/paper/question/get/playtimes", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/paper/question/get/playtimes", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamRecordQuestionAudioPlayTimes(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String questionId) throws Exception {
|
|
public Result getExamRecordQuestionAudioPlayTimes(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String questionId) throws Exception {
|
|
- return netExamService.getExamRecordQuestionAudioPlayTimes(key, token, questionId);
|
|
|
|
|
|
+ return oeService.getExamRecordQuestionAudioPlayTimes(key, token, questionId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "更新当前试题的音频已播放次数接口")
|
|
@ApiOperation(value = "更新当前试题的音频已播放次数接口")
|
|
@RequestMapping(value = "/exam/record/paper/question/update/playtimes", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/record/paper/question/update/playtimes", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result updateExamRecordQuestionAudioPlayTimes(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String questionId, @RequestParam String mediaName) throws Exception {
|
|
public Result updateExamRecordQuestionAudioPlayTimes(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String questionId, @RequestParam String mediaName) throws Exception {
|
|
- return netExamService.updateExamRecordQuestionAudioPlayTimes(key, token, questionId, mediaName);
|
|
|
|
|
|
+ return oeService.updateExamRecordQuestionAudioPlayTimes(key, token, questionId, mediaName);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "开考前查询“考试说明”")
|
|
@ApiOperation(value = "开考前查询“考试说明”")
|
|
@RequestMapping(value = "/exam/practice/before/{examId}/{type}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/practice/before/{examId}/{type}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getBeforeExamRemark(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examId, @PathVariable String type) throws Exception {
|
|
public Result getBeforeExamRemark(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examId, @PathVariable String type) throws Exception {
|
|
- return examAdminService.getBeforeExamRemark(key, token, examId, type);
|
|
|
|
|
|
+ return examWorkService.getBeforeExamRemark(key, token, examId, type);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查询练习记录配置信息")
|
|
@ApiOperation(value = "查询练习记录配置信息")
|
|
@RequestMapping(value = "/exam/practice/end/findExamRecordDataEntity/{examRecordDataId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/practice/end/findExamRecordDataEntity/{examRecordDataId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result findExamRecordDataEntity(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examRecordDataId) throws Exception {
|
|
public Result findExamRecordDataEntity(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examRecordDataId) throws Exception {
|
|
- return netExamService.findExamRecordDataEntity(key, token, examRecordDataId);
|
|
|
|
|
|
+ return oeService.findExamRecordDataEntity(key, token, examRecordDataId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查询练习记录试题列表")
|
|
@ApiOperation(value = "查询练习记录试题列表")
|
|
@RequestMapping(value = "/exam/practice/end/getExamRecordQuestions/{examRecordDataId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/practice/end/getExamRecordQuestions/{examRecordDataId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getExamRecordQuestions(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examRecordDataId) throws Exception {
|
|
public Result getExamRecordQuestions(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examRecordDataId) throws Exception {
|
|
- return netExamService.getExamRecordQuestions(key, token, examRecordDataId);
|
|
|
|
|
|
+ return oeService.getExamRecordQuestions(key, token, examRecordDataId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查询某个试题内容")
|
|
@ApiOperation(value = "查询某个试题内容")
|
|
@RequestMapping(value = "/exam/practice/end/question", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/practice/end/question", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getQuestion(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String courseCode,
|
|
public Result getQuestion(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String courseCode,
|
|
@RequestParam Long examId, @RequestParam String groupCode, @RequestParam String questionId) throws Exception {
|
|
@RequestParam Long examId, @RequestParam String groupCode, @RequestParam String questionId) throws Exception {
|
|
- return questionPoolService.getQuestion(key, token, courseCode, examId, groupCode, questionId);
|
|
|
|
|
|
+ return questionService.getQuestion(key, token, courseCode, examId, groupCode, questionId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取冻结时间")
|
|
@ApiOperation(value = "获取冻结时间")
|
|
@RequestMapping(value = "/exam/practice/getFreezeTime", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/practice/getFreezeTime", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getFreezeTime(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam Long examId) throws Exception {
|
|
public Result getFreezeTime(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam Long examId) throws Exception {
|
|
- return examAdminService.getFreezeTime(key, token, examId);
|
|
|
|
|
|
+ return examWorkService.getFreezeTime(key, token, examId);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取文件上传类型")
|
|
@ApiOperation(value = "获取文件上传类型")
|
|
@RequestMapping(value = "/exam/practice/getUpLoadType/{examId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/exam/practice/getUpLoadType/{examId}", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public Result getUpLoadType(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examId) throws Exception {
|
|
public Result getUpLoadType(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @PathVariable Long examId) throws Exception {
|
|
- return examAdminService.getUpLoadType(key, token, examId);
|
|
|
|
|
|
+ return examWorkService.getUpLoadType(key, token, examId);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|