package com.gkhy.exam.system.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.gkhy.exam.common.api.CommonPage;
|
import com.gkhy.exam.system.domain.ExCourseChapter;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 课程章节表 服务类
|
* </p>
|
*
|
* @author kzy
|
* @since 2024-06-05 15:07:36
|
*/
|
public interface ExCourseChapterService extends IService<ExCourseChapter> {
|
|
/**
|
* 根据条件分页查询课程章节列表
|
* @param chapter
|
* @return
|
*/
|
CommonPage selectChapterList(ExCourseChapter chapter);
|
|
|
/**
|
* 根据id查询课程章节信息
|
*
|
* @param chapterId 章节ID
|
* @return 章节信息
|
*/
|
public ExCourseChapter selectChapterById(Long chapterId);
|
|
|
/**
|
* 新增课程章节
|
*
|
* @param chapter 章节信息
|
* @return 结果
|
*/
|
public int insertChapter(ExCourseChapter chapter);
|
|
|
/**
|
* 修改课程章节
|
*
|
* @param chapter 章节信息
|
* @return 结果
|
*/
|
public int updateChapter(ExCourseChapter chapter);
|
|
/**
|
* 删除章节信息
|
*
|
* @param chapterId 章节ID
|
* @return 结果
|
*/
|
public int deleteChapterById(Long chapterId);
|
|
|
/**
|
* 校验章节名称是否唯一
|
*
|
* @param chapter 章节信息
|
* @return boolean
|
*/
|
public boolean checkNameUnique(ExCourseChapter chapter);
|
|
/**
|
* 根据课程id查询章节列表
|
* @param courseId
|
* @return
|
*/
|
public List<ExCourseChapter> selectChapterByCourseId(Long courseId,Integer status);
|
|
}
|