|
|
@@ -110,9 +110,9 @@ public class QuizController {
|
|
|
}
|
|
|
|
|
|
@Auth(roles = {UserType.STUDENT}, message = "提交作答")
|
|
|
- @PostMapping("/student-answer")
|
|
|
- public QuizStudentAnswerVO submitQuizStudentAnswer(LoginUser user, @RequestBody QuizStudentAnswerDTO quizStudentAnswerDTO) {
|
|
|
- return quizStudentAnswerService.submitQuizStudentAnswer(user, quizStudentAnswerDTO);
|
|
|
+ @PostMapping("/{quizId}/student-answer")
|
|
|
+ public QuizStudentAnswerVO submitQuizStudentAnswer(LoginUser user, @PathVariable Long quizId, @RequestBody QuizStudentAnswerDTO quizStudentAnswerDTO) {
|
|
|
+ return quizStudentAnswerService.submitQuizStudentAnswer(user, quizId, quizStudentAnswerDTO);
|
|
|
}
|
|
|
|
|
|
/**
|