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,
String remark)
保存文件信息
|
Result<FileVO> |
upload(org.springframework.web.multipart.MultipartFile file,
boolean unique,
String module,
String md5,
String remark)
文件上传
|
Result<FileVO> upload(org.springframework.web.multipart.MultipartFile file, boolean unique, String module, String md5, String remark) throws Exception
file - 文件unique - 是否唯一module - md5 - remark - ExceptionFileVO getFile(DownloadVO downloadVO)
InputStream getFile(SysFileInfo sysFileInfo) throws Exception
Exceptiondefault File createFile(String fileName, boolean isCreate) throws Exception
fileName - 文件名称isCreate - 是否生成文件ExceptionFileProperties getProperties()
String saveFileInfo(File file, String md5, String remark)
file - 文件md5 - Copyright © 2024. All rights reserved.