You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.0 KiB
75 lines
2.0 KiB
8 months ago
|
package com.teaching.backend.service.Know;
|
||
|
|
||
|
import com.teaching.backend.common.BaseResponse;
|
||
|
import com.teaching.backend.model.dto.Know.*;
|
||
|
import com.teaching.backend.model.entity.know.Know;
|
||
|
import com.teaching.backend.model.entity.know.KnowChapter;
|
||
|
import com.teaching.backend.model.entity.know.KnowCourse;
|
||
|
import com.teaching.backend.model.entity.resource.Resources;
|
||
|
import com.teaching.backend.model.vo.knowGraph.KnowVO1;
|
||
|
|
||
|
import java.util.Set;
|
||
|
|
||
|
/**
|
||
|
* @Author:youhang
|
||
|
* @Date:2024-08-07-15:50
|
||
|
* @Description:
|
||
|
*/
|
||
|
public interface KnowService {
|
||
|
|
||
|
// 添加知识点
|
||
|
BaseResponse<String> addKnow(KnowRequest knowRequest);
|
||
|
|
||
|
// 修改知识点
|
||
|
BaseResponse<String> updateKnow(KnowUpdateRequest knowUpdateRequest);
|
||
|
|
||
|
// 删除知识点
|
||
|
BaseResponse<String> deleteKnow(Long id);
|
||
|
|
||
|
//查询知识点通过id
|
||
|
BaseResponse<Know> queryKnow(Long id);
|
||
|
|
||
|
//======================================
|
||
|
|
||
|
// 添加课程
|
||
|
BaseResponse<String> addCourse(KnowCourseCreateRequest knowCourseCreateRequest);
|
||
|
|
||
|
// 修改课程
|
||
|
BaseResponse<String> updateCourse(KnowCourseCreateRequest knowCourseCreateRequest);
|
||
|
|
||
|
|
||
|
// 删除课程
|
||
|
BaseResponse<String> deleteCourse(String courseId);
|
||
|
|
||
|
//查询课程通过courseid
|
||
|
BaseResponse<KnowCourse> queryCourse(String courseId);
|
||
|
|
||
|
|
||
|
//=========================
|
||
|
|
||
|
// 添加章节
|
||
|
BaseResponse<String> addChapter(KnowChapterCreateRequest knowChapterCreateRequest);
|
||
|
|
||
|
// 修改章节
|
||
|
BaseResponse<String> updateChapter(KnowChapterCreateRequest knowChapterCreateRequest);
|
||
|
|
||
|
// 删除章节
|
||
|
BaseResponse<String> deleteChapter(Long chapterId);
|
||
|
|
||
|
//查询章节通过chapterId
|
||
|
BaseResponse<KnowChapter> queryChapter(Long chapterId);
|
||
|
|
||
|
//=====================
|
||
|
|
||
|
//获取课程下的所有知识点
|
||
|
BaseKnowReturn getAllKnowByCourseId(String id);
|
||
|
|
||
|
//获取课程下的所有资源
|
||
|
BaseResponse<Set<KnowVO1>> getAllResourcesByCourseId(String id);
|
||
|
|
||
|
//获取知识点下二级的所有资源
|
||
|
Set<Resources> getSecondResources(Long id);
|
||
|
|
||
|
|
||
|
}
|