QuizStudentAnswerService.java 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package nju.seec.helper.service;
  2. import nju.seec.helper.dto.quiz.QuizStudentAnswerDTO;
  3. import nju.seec.helper.dto.user.LoginUser;
  4. import nju.seec.helper.vo.quiz.QuizStudentAnswerVO;
  5. import org.springframework.data.domain.Page;
  6. import org.springframework.data.domain.Pageable;
  7. /**
  8. * @author cst
  9. */
  10. public interface QuizStudentAnswerService {
  11. /**
  12. * 提交测试作答
  13. *
  14. * @param user
  15. * @param quizStudentAnswerDTO
  16. * @return
  17. */
  18. QuizStudentAnswerVO submitQuizStudentAnswer(LoginUser user, QuizStudentAnswerDTO quizStudentAnswerDTO);
  19. /**
  20. * 老师查看学生答案列表
  21. *
  22. * @param user
  23. * @param quizId
  24. * @param pageable
  25. * @return
  26. */
  27. Page<QuizStudentAnswerVO> teacherGetQuizStudentAnswers(LoginUser user, Long quizId, Pageable pageable);
  28. /**
  29. * 学生查看自己的答案
  30. *
  31. * @param user
  32. * @param quizId
  33. * @return
  34. */
  35. QuizStudentAnswerVO studentGetSelfQuizStudentAnswer(LoginUser user, Long quizId);
  36. }