mirror of
https://github.com/kekingcn/kkFileView.git
synced 2026-04-19 19:08:37 +00:00
21 lines
628 B
Java
21 lines
628 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;
|
|
|
|
/**
|
|
* Created by kl on 2018/1/17.
|
|
* Content :其他文件
|
|
*/
|
|
@Service
|
|
public class OtherFilePreviewImpl implements FilePreview {
|
|
@Override
|
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
|
model.addAttribute("fileType",fileAttribute.getSuffix());
|
|
model.addAttribute("msg", "系统还不支持该格式文件的在线预览");
|
|
return "fileNotSupported";
|
|
}
|
|
}
|