public interface FileService
| 限定符和类型 | 方法和说明 |
|---|---|
default File |
createFile(String fileName,
boolean isCreate)
创建文件路径
|
boolean |
delete(String fileId)
根据文件ID删除文件
|
FileVO |
getFile(DownloadVO downloadVO)
获取服务器上的文件
|
InputStream |
getFile(SysFileInfo sysFileInfo) |
FileProperties |
getProperties() |
String |
saveFileInfo(File file,
String md5)
保存文件信息
|
Result |
upload(org.springframework.web.multipart.MultipartFile file,
boolean unique,
String module,
String md5)
文件上传
|
Result upload(org.springframework.web.multipart.MultipartFile file, boolean unique, String module, String md5) throws Exception
file - 文件unique - 是否唯一module - md5 - ExceptionFileVO getFile(DownloadVO downloadVO)
InputStream getFile(SysFileInfo sysFileInfo) throws Exception
Exceptiondefault File createFile(String fileName, boolean isCreate) throws Exception
fileName - 文件名称isCreate - 是否生成文件ExceptionFileProperties getProperties()
Copyright © 2024. All rights reserved.