FilePreview.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package cn.keking.service;
  2. import cn.keking.model.FileAttribute;
  3. import org.springframework.ui.Model;
  4. /**
  5. * Created by kl on 2018/1/17.
  6. * Content :
  7. */
  8. public interface FilePreview {
  9. String FLV_FILE_PREVIEW_PAGE = "flv";
  10. String PDF_FILE_PREVIEW_PAGE = "pdf";
  11. String PPT_FILE_PREVIEW_PAGE = "ppt";
  12. String COMPRESS_FILE_PREVIEW_PAGE = "compress";
  13. String MEDIA_FILE_PREVIEW_PAGE = "media";
  14. String PICTURE_FILE_PREVIEW_PAGE = "picture";
  15. String TIFF_FILE_PREVIEW_PAGE = "tiff";
  16. String OFD_FILE_PREVIEW_PAGE = "ofd";
  17. String SVG_FILE_PREVIEW_PAGE = "svg";
  18. String Online3D_FILE_PAGE = "online3D";
  19. String EpubFilePreviewImpl = "epub";
  20. String XMIND_FILE_PREVIEW_PAGE = "xmind";
  21. String EML_FILE_PREVIEW_PAGE = "eml";
  22. String OFFICE_PICTURE_FILE_PREVIEW_PAGE = "officePicture";
  23. String TXT_FILE_PREVIEW_PAGE = "txt";
  24. String CODE_FILE_PREVIEW_PAGE = "code";
  25. String EXEL_FILE_PREVIEW_PAGE = "html";
  26. String XML_FILE_PREVIEW_PAGE = "xml";
  27. String MARKDOWN_FILE_PREVIEW_PAGE = "markdown";
  28. String BPMN_FILE_PREVIEW_PAGE = "bpmn";
  29. String DCM_FILE_PREVIEW_PAGE = "dcm";
  30. String NOT_SUPPORTED_FILE_PAGE = "fileNotSupported";
  31. String filePreviewHandle(String url, Model model, FileAttribute fileAttribute);
  32. }