| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- package nju.seec.helper.service;
- import nju.seec.helper.dto.user.LoginUser;
- import nju.seec.helper.entity.Quiz;
- import nju.seec.helper.vo.question.BaseQuestionVO;
- import org.springframework.data.domain.Page;
- import org.springframework.data.domain.Pageable;
- import java.util.List;
- /**
- * @author xst
- * <p>
- * updated by cst
- */
- public interface QuestionService {
- /**
- * 取得题目列表
- *
- * @param user
- * @param stem
- * @param pageable
- * @return
- */
- Page<BaseQuestionVO> getQuestions(LoginUser user, String stem, Pageable pageable);
- /**
- * 根据测试获取题目
- *
- * @param user
- * @param quizId
- * @return
- */
- List<BaseQuestionVO> getQuestionsByQuiz(LoginUser user, Long quizId);
- /**
- * 根据测试获取题目(无需权限检验)
- *
- * @param quiz
- * @return
- */
- List<BaseQuestionVO> getQuestionsByQuiz(Quiz quiz);
- /**
- * 获取某一题目
- *
- * @param user
- * @param questionId
- * @return
- */
- BaseQuestionVO getOneQuestion(LoginUser user, String questionId);
- }
|