CourseMapper.java 635 B

123456789101112131415161718192021222324252627
  1. package cn.seecoder.courselearning.mapperservice.course;
  2. import cn.seecoder.courselearning.po.course.Course;
  3. import java.util.List;
  4. public interface CourseMapper {
  5. int deleteByPrimaryKey(Integer id);
  6. int insert(Course record);
  7. Course selectByPrimaryKey(Integer id);
  8. List<Course> selectAll();
  9. int updateByPrimaryKey(Course record);
  10. List<Course> selectByType(String type);
  11. List<Course> queryAll(String key);
  12. List<Course> selectByTeacherId(Integer userId);
  13. List<Course> selectByStudentId(Integer userId);
  14. // 根据点赞数 返回热门课程列表
  15. List<Course> selectHotCourses();
  16. }