一、创建课程大纲
1.后端实现
1.创建章节的封装类
2.给EduChapterService接口,写两个方法,为后面调用做准备
package com.atguigu.eduservice.service;
import com.atguigu.eduservice.entity.EduChapter;
import com.atguigu.eduservice.entity.chapter.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 课程 服务类
* </p>
*
* @author testjava
* @since 2022-08-07
*/
public interface EduChapterService extends IService<EduChapter> {
List<ChapterVo> getChapterVideoByCourseId(String courseId);
boolean deleteChapter(String chapterId);
}
3.实现继承,并对两个方法实现重写
实现查询方法,查询所有的章节,
@Service
public class EduChapterServiceI