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 org.springframework.web.bind.annotation.RequestParam; import java.util.Set; /** * @Author:youhang * @Date:2024-08-07-15:50 * @Description: */ public interface KnowService { BaseResponse getTwoLevelKnows(Long id); BaseResponse getThreeLevelKnows(Long id); BaseResponse getFourLevelKnows(Long id); //通过courseId 显示图的JSON BaseResponse showGraphJson(String courseId); //通过courseId 添加所有节点 BaseResponse addAllKnow(String courseId); BaseResponse addRelationshipWithresources(Long id, Long resourceId); //===================== // // 添加知识点 // BaseResponse addKnow(KnowRequest knowRequest); // 修改知识点 BaseResponse updateKnow(KnowUpdateRequest knowUpdateRequest); // 删除知识点 BaseResponse deleteKnow(Long id); //查询知识点通过id BaseResponse queryKnow(Long id); //====================================== // 添加课程 BaseResponse addCourse(KnowCourseCreateRequest knowCourseCreateRequest); // 修改课程 BaseResponse updateCourse(KnowCourseCreateRequest knowCourseCreateRequest); // 删除课程 BaseResponse deleteCourse(String courseId); //查询课程通过courseid BaseResponse queryCourse(String courseId); //========================= // 添加章节 BaseResponse addChapter(KnowChapterCreateRequest knowChapterCreateRequest); // 修改章节 BaseResponse updateChapter(KnowChapterCreateRequest knowChapterCreateRequest); // 删除章节 BaseResponse deleteChapter(Long chapterId); //查询章节通过chapterId BaseResponse queryChapter(Long chapterId); //===================== //获取课程下的所有知识点 BaseResponse getAllKnowByCourseId(String id); //获取课程下的所有知识点 BaseResponse getsecondKnowsById(Long id); //获取课程下的所有资源 BaseResponse> getAllResourcesByCourseId(String id); }