mirror of
https://github.com/kekingcn/kkFileView.git
synced 2026-04-17 20:57:28 +00:00
28 lines
774 B
Java
28 lines
774 B
Java
package cn.keking.service.impl;
|
|
|
|
import cn.keking.model.FileAttribute;
|
|
import cn.keking.service.FilePreview;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.ui.Model;
|
|
|
|
/**
|
|
* tiff 图片文件处理
|
|
* @author kl (http://kailing.pub)
|
|
* @since 2021/2/8
|
|
*/
|
|
@Service
|
|
public class TiffFilePreviewImpl implements FilePreview {
|
|
|
|
private final PictureFilePreviewImpl pictureFilePreview;
|
|
|
|
public TiffFilePreviewImpl(PictureFilePreviewImpl pictureFilePreview) {
|
|
this.pictureFilePreview = pictureFilePreview;
|
|
}
|
|
|
|
@Override
|
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
|
pictureFilePreview.filePreviewHandle(url,model,fileAttribute);
|
|
return TIFF_FILE_PREVIEW_PAGE;
|
|
}
|
|
}
|