|
|
@@ -68,9 +68,9 @@ public class QuizController {
|
|
|
@Auth(roles = UserType.STUDENT, message = "获取测试列表")
|
|
|
@GetMapping("/student")
|
|
|
public PageResponse<QuizVO> studentGetQuizzesByState(LoginUser user,
|
|
|
- QuizState state,
|
|
|
- @RequestParam(required = false, defaultValue = "") String key,
|
|
|
- @PageableDefault(Integer.MAX_VALUE) Pageable pageable) {
|
|
|
+ QuizState state,
|
|
|
+ @RequestParam(required = false, defaultValue = "") String key,
|
|
|
+ @PageableDefault(Integer.MAX_VALUE) Pageable pageable) {
|
|
|
return PageResponse.of(quizService.studentGetQuizzesByState(user, state, key, pageable));
|
|
|
}
|
|
|
|
|
|
@@ -124,7 +124,7 @@ public class QuizController {
|
|
|
* @return
|
|
|
*/
|
|
|
@Auth(roles = {UserType.TEACHER}, message = "获取学生作答")
|
|
|
- @GetMapping("/{quizId}/teacher/student-answer/}")
|
|
|
+ @GetMapping("/{quizId}/student-answers")
|
|
|
public Page<QuizStudentAnswerVO> getQuizStudentAnswers(LoginUser user, @PathVariable Long quizId, @PageableDefault(size = Integer.MAX_VALUE) Pageable pageable) {
|
|
|
return quizStudentAnswerService.teacherGetQuizStudentAnswers(user, quizId, pageable);
|
|
|
}
|
|
|
@@ -137,7 +137,7 @@ public class QuizController {
|
|
|
* @return
|
|
|
*/
|
|
|
@Auth(roles = {UserType.STUDENT}, message = "获取作答")
|
|
|
- @GetMapping("/{quizId}/student/student-answer/}")
|
|
|
+ @GetMapping("/{quizId}/student-answer")
|
|
|
public QuizStudentAnswerVO getOneQuizStudentAnswer(LoginUser user, @PathVariable Long quizId) {
|
|
|
return quizStudentAnswerService.studentGetSelfQuizStudentAnswer(user, quizId);
|
|
|
}
|