26 lines
687 B
Java
26 lines
687 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;
|
|
|
|
/**
|
|
* Drawio 文件处理
|
|
*/
|
|
@Service
|
|
public class DrawioFilePreviewImpl implements FilePreview {
|
|
|
|
private final CommonPreviewImpl commonPreview;
|
|
|
|
public DrawioFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
|
this.commonPreview = commonPreview;
|
|
}
|
|
|
|
@Override
|
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
|
return DRAWUI_FILE_PREVIEW_PAGE;
|
|
}
|
|
}
|