mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-12-27 06:35:46 +08:00
28 lines
741 B
Java
28 lines
741 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;
|
|
|
|
/**
|
|
* svg 图片文件处理
|
|
* @author kl (http://kailing.pub)
|
|
* @since 2021/2/8
|
|
*/
|
|
@Service
|
|
public class XmindFilePreviewImpl implements FilePreview {
|
|
|
|
private final CommonPreviewImpl commonPreview;
|
|
|
|
public XmindFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
|
this.commonPreview = commonPreview;
|
|
}
|
|
|
|
@Override
|
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
|
return XMIND_FILE_PREVIEW_PAGE;
|
|
}
|
|
}
|