| | |
| | | package com.ard.inspection.service; |
| | | |
| | | |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.inspection.domain.UploadFileEntity; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.Map; |
| | |
| | | String fileMd5, |
| | | String chunkPath); |
| | | |
| | | public Map<String, Object> uploadChunk(MultipartFile file, |
| | | UploadFileEntity uploadFileEntity, |
| | | String chunkPath); |
| | | |
| | | /** |
| | | * 合并切片 |
| | | * |
| | |
| | | String fileName, |
| | | String uploadPath); |
| | | |
| | | /** |
| | | * 大文件上传并解压接口 |
| | | * @param file 上传的ZIP文件 |
| | | * @param overwrite 是否覆盖已存在文件(默认false) |
| | | * @param uploadPath 上传文件存储路径 |
| | | * @param chunkPath 临时切片存储路径 |
| | | * @param zipPath 解压文件存储路径 |
| | | * @return 上传结果 |
| | | */ |
| | | public AjaxResult uploadBigZipFile(MultipartFile file, |
| | | boolean overwrite, |
| | | String uploadPath, |
| | | String chunkPath, |
| | | String zipPath); |
| | | |
| | | } |