package jnpf.cultivate.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import jnpf.model.cultivate.po.course.FtbCultivateCourseChapter;
import jnpf.model.cultivate.vo.course.web.FtbCultivateCourseChapterVO;
import org.apache.ibatis.annotations.Param;

public interface FtbCultivateCourseChapterMapper extends BaseMapper<FtbCultivateCourseChapter> {
    /**
     * 课程章节分页查询
     */
    Page<FtbCultivateCourseChapterVO> queryList(@Param("page") Page page, @Param("courseId") String courseId);

    /**
     * 查询课程的总时长
     * @param id 课程id
     * @return
     */
    Long querySumDuration(@Param("id") String id);
}