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.
|
|
|
package com.teaching.backend.service.resource;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
import com.teaching.backend.model.entity.CourseResources;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ClassName: FileTableService
|
|
|
|
* Package: com.teaching.backend.service
|
|
|
|
* Description:
|
|
|
|
*
|
|
|
|
* @Author 姜钧瀚
|
|
|
|
* @Create 2024/6/4 11:49
|
|
|
|
* @Version 1.0
|
|
|
|
*/
|
|
|
|
public interface CourseResourcesService extends IService<CourseResources> {
|
|
|
|
void updateFile(Integer type, String fileName, String filePath);
|
|
|
|
|
|
|
|
void download(String id, String path, HttpServletResponse response, String endpoint, String accessKeyId, String accessKeySecret, String bucketName) throws IOException;
|
|
|
|
|
|
|
|
|
|
|
|
Page<CourseResources> getresourceRecords(Integer type, List<Integer> resourceIdList, int page, int pageSize);
|
|
|
|
|
|
|
|
|
|
|
|
public List<CourseResources> getByType(String type);
|
|
|
|
public void removeCourseResources(List<Long> ids);
|
|
|
|
|
|
|
|
public void saveCourseResource(CourseResources courseResources);
|
|
|
|
|
|
|
|
public void editCourseResource(String resourceId);
|
|
|
|
}
|