IMongoService.java 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.doc.biz.service;
  2. import com.doc.biz.vo.DocumentVO;
  3. import org.springframework.web.multipart.MultipartFile;
  4. import java.util.List;
  5. /**
  6. * Mongo存储Service接口
  7. *
  8. * @author wukai
  9. * @date 2023-08-15
  10. */
  11. public interface IMongoService {
  12. /**
  13. * 文件上传
  14. * @param file
  15. * @return
  16. * @throws Exception
  17. */
  18. DocumentVO uploadFile(MultipartFile file) throws Exception;
  19. /**
  20. * 多文件上传
  21. *
  22. * @param files
  23. * @return
  24. */
  25. List<DocumentVO> uploadFiles(List<MultipartFile> files);
  26. /**
  27. * 文件下载
  28. *
  29. * @param fileId
  30. * @return
  31. */
  32. DocumentVO downloadFile(String fileId);
  33. /**
  34. * 文件删除
  35. *
  36. * @param fileId
  37. */
  38. void removeFile(String fileId);
  39. }