puzhibing
2024-02-05 640ff18d2d7f4be02ddb7f8f75e899f05545eb98
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
65
66
67
68
package com.dsh.guns.modular.system.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsh.guns.modular.system.model.TCourse;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author zhibing.pu
 * @Date 2023/7/31 14:18
 */
public interface ICourseService {
 
 
    /**
     * 获取列表数据
     * @param name
     * @param courseType
     * @return
     */
    Page<Map<String, Object>> queryCourseList(String name, Integer courseType);
 
 
    /**
     * 添加数据
     * @param course
     */
    void addCourse(TCourse course);
 
 
    /**
     * 根据id获取数据
     * @param id
     * @return
     */
    TCourse queryCourseById(Integer id);
 
 
    /**
     * 修改数据
     * @param course
     */
    void editCourse(TCourse course);
 
 
    /**
     * 删除数据
     * @param id
     */
    void delCourse(Integer id);
 
 
    /**
     * 修改数据状态
     * @param id
     * @param state
     */
    void editCourseState(Integer id, Integer state);
 
 
    /**
     * 根据类型获取数据
     * @param type
     * @return
     */
    List<TCourse> queryCourseByType(Integer type);
}