package jnpf.cultivate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import jnpf.model.cultivate.po.position.FtbCultivatePositionCourceChapterLearning;
import jnpf.model.cultivate.vo.course.app.ChapterInformationVO;
import jnpf.model.cultivate.vo.position.FtbCultivateCourseListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FtbCultivatePositionCourceChapterLearningMapper extends BaseMapper<FtbCultivatePositionCourceChapterLearning> {
    /**
     * 课程大纲
     */
    List<ChapterInformationVO> listChapterByCourseId(@Param("courseId") String courseId, @Param("userId") String userId);

    /**
     * 课程列表
     */
    Page<FtbCultivateCourseListVO> getCourseInformationList(@Param("page") Page<FtbCultivateCourseListVO> pageList, @Param("userId") String userId);

}