package com.teaching.backend.service.resource; import com.teaching.backend.common.BaseResponse; import com.teaching.backend.model.dto.resource.ResourceUploadDto; import com.teaching.backend.model.entity.resource.Resources; import org.springframework.core.io.InputStreamResource; import org.springframework.data.neo4j.repository.query.Query; import org.springframework.http.ResponseEntity; import org.springframework.web.multipart.MultipartFile; import java.util.List; import java.util.Set; /** * @Author:youhang * @Date:2024-07-26-13:55 * @Description: */ public interface ResourceService { BaseResponse upload(MultipartFile file) ; BaseResponse delete(String filename) ; ResponseEntity readFile(String filename); BaseResponse addResourcesAndKnowByCourseId(String courseId, List resourcesIds); BaseResponse addResourcesAndKnowByChapterId(Long chapterId, List resourcesIds); BaseResponse addResourcesAndKnowById(Long id, List resourcesIds); //查询课程下资源 BaseResponse> queryResourcesByCourseId(String courseId); //查询章节下资源 BaseResponse> queryResourcesByChapterId(Long chapterId); //查询二级节点下资源 BaseResponse> queryBesidesKnowToResources(Long KnowId); BaseResponse> queryResourcesByKnowId(Long KnowId); }