FileServer.java 549 B

123456789101112131415161718192021
  1. package com.fd.server;
  2. import com.fd.util.ResponseResult;
  3. import org.springframework.web.multipart.MultipartFile;
  4. /**
  5. * Created by Owen on 2019/10/25 0025 16:05
  6. */
  7. //@Component
  8. public interface FileServer {
  9. // 大文件上传
  10. ResponseResult uploadBigFile(MultipartFile file, String savePath);
  11. // 普通文件上传,不支持大文件
  12. ResponseResult uploadVector(MultipartFile file, String savePath, String directoryName);
  13. ResponseResult deleteFileById(Long id);
  14. // ResponseResult deleteDirectoryById(Long fileId);
  15. }