package com.zhongzheng.modules.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
import com.zhongzheng.modules.course.domain.CourseMenu;
import com.zhongzheng.modules.course.vo.CourseMenuVo;
import com.zhongzheng.modules.course.vo.CourseUserMenuVo;
import com.zhongzheng.modules.course.vo.CourseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * .modules.user结构Mapper接口
 *
 * @author hjl
 * @date 2021-10-12
 */
public interface CourseMenuMapper extends BaseMapper<CourseMenu> {
    List<CourseMenuVo> selectList(CourseMenuQueryBo bo);

    List<CourseUserMenuVo> menuList(CourseMenuQueryBo bo);

    Integer rebuildCheck(@Param("sectionId") Long id,@Param("gradeId") Long gradeId,@Param("userId")Long userId);

    Integer rebuildChapterCheck(@Param("chapterId")Long id,@Param("gradeId") Long gradeId,@Param("userId") Long userId);

    Integer rebuildModuleCheck(@Param("moduleId")Long id,@Param("gradeId") Long gradeId,@Param("userId") Long userId);
}
