xiangpei
2024-05-14 d5f80c24adbef34f8e66cedb46a72a6395134445
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.mindskip.xzs.service;
 
import com.github.pagehelper.PageInfo;
import com.mindskip.xzs.base.RestResponse;
import com.mindskip.xzs.domain.Question;
import com.mindskip.xzs.viewmodel.admin.question.ExamQuestionVO;
import com.mindskip.xzs.viewmodel.admin.question.QuestionEditRequestVM;
import com.mindskip.xzs.viewmodel.admin.question.QuestionPageRequestVM;
import com.mindskip.xzs.viewmodel.student.question.answer.QuestionAnswerVO;
import com.mindskip.xzs.viewmodel.student.question.answer.QuestionPageStudentRequestVM;
import com.mindskip.xzs.viewmodel.student.question.answer.QuestionPageStudentResponseVM;
import com.mindskip.xzs.vo.QuestionExportVO;
import com.mindskip.xzs.vo.QuestionImportVO;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface QuestionService extends BaseService<Question> {
 
    PageInfo<Question> page(QuestionPageRequestVM requestVM);
 
    Question insertFullQuestion(QuestionEditRequestVM model, Integer userId);
 
    Question updateFullQuestion(QuestionEditRequestVM model);
 
    ExamQuestionVO getQuestionEditRequestVM(Integer questionId);
 
    ExamQuestionVO getQuestionEditRequestVM(Question question);
 
    Integer selectAllCount();
 
    List<Integer> selectMothCount();
 
    Integer remove(Integer id);
 
    List<Question> getAll();
 
    List<Question> selectByIds(@Param("ids") List<Integer> ids);
 
    /**
     * 题目导出数据
     * @param query
     * @return
     */
    List<QuestionImportVO> export(QuestionExportVO query);
 
    PageInfo<QuestionPageStudentResponseVM> selectQuestion(QuestionPageStudentRequestVM model);
 
    /** 查出题目主体内容 */
    RestResponse selectContentById(Integer id);
 
    /** 获取题目答案、解析 */
    RestResponse getAnswer(Integer id);
}