mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-15 05:33:52 +08:00
26 lines
675 B
Java
26 lines
675 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;
|
|
|
|
/**
|
|
* EML 文件处理
|
|
*/
|
|
@Service
|
|
public class EmlFilePreviewImpl implements FilePreview {
|
|
|
|
private final CommonPreviewImpl commonPreview;
|
|
|
|
public EmlFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
|
this.commonPreview = commonPreview;
|
|
}
|
|
|
|
@Override
|
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
|
return EML_FILE_PREVIEW_PAGE;
|
|
}
|
|
}
|