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);
|
}
|