Add workflow bpmn file preview support (#441)

This commit is contained in:
kl
2023-03-09 21:00:03 +08:00
committed by GitHub
parent eb12ced77f
commit 09a3fd2db8
26 changed files with 64911 additions and 41 deletions

View File

@@ -13,15 +13,15 @@ import org.springframework.ui.Model;
@Service
public class EpubFilePreviewImpl implements FilePreview {
private final PictureFilePreviewImpl pictureFilePreview;
private final CommonPreviewImpl commonPreview;
public EpubFilePreviewImpl(PictureFilePreviewImpl pictureFilePreview) {
this.pictureFilePreview = pictureFilePreview;
public EpubFilePreviewImpl(CommonPreviewImpl commonPreview) {
this.commonPreview = commonPreview;
}
@Override
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
pictureFilePreview.filePreviewHandle(url,model,fileAttribute);
commonPreview.filePreviewHandle(url,model,fileAttribute);
return EpubFilePreviewImpl;
}
}