package cn.seecoder.courselearning.mapperservice.course; import cn.seecoder.courselearning.po.course.Course; import java.util.List; public interface CourseMapper { int deleteByPrimaryKey(Integer id); int insert(Course record); Course selectByPrimaryKey(Integer id); List selectAll(); int updateByPrimaryKey(Course record); List selectByType(String type); List queryAll(String key); List selectByTeacherId(Integer userId); List selectByStudentId(Integer userId); // 根据点赞数 返回热门课程列表 List selectHotCourses(); }