ISysFileService.java 965 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.xunmei.file.service;
  2. import org.springframework.web.multipart.MultipartFile;
  3. import javax.servlet.http.HttpServletResponse;
  4. import java.util.Map;
  5. /**
  6. * 文件上传接口
  7. *
  8. * @author xunmei
  9. */
  10. public interface ISysFileService
  11. {
  12. /**
  13. * 文件上传接口
  14. *
  15. * @param file 上传的文件
  16. * @return 访问地址
  17. * @throws Exception
  18. */
  19. String uploadFile(MultipartFile file) throws Exception;
  20. /**
  21. * 文件上传接口
  22. *
  23. * @param file 上传的文件
  24. * @return 访问地址
  25. * @throws Exception
  26. */
  27. String uploadFile(MultipartFile file, String busType) throws Exception;
  28. /**
  29. * 文件下载接口
  30. *
  31. * @param response
  32. * @param filePath
  33. * @return
  34. * @throws Exception
  35. */
  36. void downloadFile(HttpServletResponse response, String filePath) throws Exception;
  37. String generateEduTrainingPdf(Map<String, Object> data) throws Exception;
  38. }