|
@@ -285,6 +285,12 @@ public class ExamController {
|
|
|
return OkResponse.of(examService.getExamQuestionAndScoreById(examId));
|
|
return OkResponse.of(examService.getExamQuestionAndScoreById(examId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation("根据考试id获得对应考试的代码题目")
|
|
|
|
|
+ @GetMapping("/eval/exam/{examId}/codeQuestions")
|
|
|
|
|
+ public OkResponse<JSONObject> getExamCodeQuestionAndScoreById(@PathVariable Integer examId) {
|
|
|
|
|
+ return OkResponse.of(examService.getExamCodeQuestionAndScoreById(examId));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@ApiOperation("根据Id获得题目的全部信息,包括解答")
|
|
@ApiOperation("根据Id获得题目的全部信息,包括解答")
|
|
|
@GetMapping("/eval/questions/{id}")
|
|
@GetMapping("/eval/questions/{id}")
|
|
|
public OkResponse<JSONObject> getQuestionById(@PathVariable String id) {
|
|
public OkResponse<JSONObject> getQuestionById(@PathVariable String id) {
|