package com.xunmei.file.service; import com.xunmei.common.core.domain.registerbook.dto.CoreRegisterBookPdfExportDto; import com.xunmei.common.core.domain.registerbook.dto.ExportPdfDto; import com.xunmei.file.vo.FileBase64Vo; import com.xunmei.system.api.domain.SafeCheckTaskRegisterBookVo; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.InputStream; import java.util.Map; /** * 文件上传接口 * * @author xunmei */ public interface ISysFileService { /** * 文件上传接口 * * @param file 上传的文件 * @return 访问地址 * @throws Exception */ String uploadFile(MultipartFile file) throws Exception; /** * 文件上传接口 * * @param file 上传的文件 * @return 访问地址 * @throws Exception */ String uploadFile(MultipartFile file, String busType) throws Exception; /** * 文件下载接口 * * @param response * @param filePath * @return * @throws Exception */ void downloadFile(HttpServletResponse response, String filePath) throws Exception; String generateEduTrainingPdf(Map data) throws Exception; String generateResumptionPdf(Map data) throws Exception; String generateSafeCheckPdf(SafeCheckTaskRegisterBookVo data) throws Exception; String getRelativePath(String path); void getFileStream(String path, HttpServletResponse response); String generateDrillPdf(Map data)throws Exception; /** * base64转换为指定类型文件,并返回后端路径 * @param file * @return * @throws Exception */ String uploadFileBase64(FileBase64Vo file)throws Exception; String absolutePath(String path); InputStream getFileStream(String path) throws IOException; void registerBookCompressPdf(ExportPdfDto exportDto, HttpServletResponse response) throws IOException; void cutFileCompress(CoreRegisterBookPdfExportDto exportDto); }