IFileManagerService.java 783 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.example.fms.service;
  2. import org.springframework.transaction.annotation.Transactional;
  3. import org.springframework.web.multipart.MultipartFile;
  4. import java.util.List;
  5. /**
  6. * @Author xiexiang
  7. * @Date 2023/6/7
  8. */
  9. public interface IFileManagerService {
  10. /**
  11. * 上传系统文件
  12. *
  13. * @param files
  14. * @param sourceId
  15. */
  16. @Transactional
  17. void add(List<MultipartFile> files, Integer sourceId);
  18. /**
  19. * 删除系统文件
  20. *
  21. * @param ids
  22. * @param type
  23. */
  24. @Transactional
  25. void delete(List<Integer> ids, Integer type);
  26. /**
  27. * 下载系统文件
  28. *
  29. * @param fileName
  30. * @param savePath
  31. * @param sourceId
  32. */
  33. void download(String fileName, String savePath, Integer sourceId);
  34. }