|
|
@@ -13,7 +13,6 @@ import nju.seec.helper.util.enums.QuizState;
|
|
|
import nju.seec.helper.util.enums.UserType;
|
|
|
import nju.seec.helper.vo.quiz.QuizStudentAnswerVO;
|
|
|
import nju.seec.helper.vo.quiz.QuizVO;
|
|
|
-import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.data.web.PageableDefault;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
@@ -125,8 +124,8 @@ public class QuizController {
|
|
|
*/
|
|
|
@Auth(roles = {UserType.TEACHER}, message = "获取学生作答")
|
|
|
@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);
|
|
|
+ public PageResponse<QuizStudentAnswerVO> getQuizStudentAnswers(LoginUser user, @PathVariable Long quizId, @PageableDefault(size = Integer.MAX_VALUE) Pageable pageable) {
|
|
|
+ return PageResponse.of(quizStudentAnswerService.teacherGetQuizStudentAnswers(user, quizId, pageable));
|
|
|
}
|
|
|
|
|
|
/**
|