xiangpei
2024-05-14 87c1bdac0c88d208cd2786913742d818e4d2debb
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
55
56
57
58
59
60
61
62
63
64
package com.mindskip.xzs.service;
 
import com.github.pagehelper.PageInfo;
import com.mindskip.xzs.base.RestResponse;
import com.mindskip.xzs.domain.Subject;
import com.mindskip.xzs.domain.vo.SelfPracticeVO;
import com.mindskip.xzs.viewmodel.admin.education.SubjectPageRequestVM;
 
import java.util.List;
 
/**
 * @author:xp
 * @date:2024/5/9 16:15
 */
public interface SelfPracticeService {
 
 
    /**
     * 添加个人练习
     * @param vo
     * @return
     */
    RestResponse add(SelfPracticeVO vo);
 
    /**
     * 分页
     *
     * @param query
     * @return
     */
    RestResponse page(SelfPracticeVO query);
 
    /**
     * 删除
     *
     * @param ids
     * @return
     */
    RestResponse remove(List<Integer> ids);
 
    /**
     * 开始练习
     *
     * @param id
     * @return
     */
    RestResponse startPractice(Integer id);
 
    /**
     * 查询课目下的题目数量
     *
     * @param subjectIds
     * @return
     */
    RestResponse subjectQuestionNum(List<Integer> subjectIds);
 
    /**
     * 随机一道题
     *
     * @param id
     * @return
     */
    RestResponse randomOneQuestion(Integer id);
}