public class LocalFileServiceImpl extends Object implements FileService
| 构造器和说明 |
|---|
LocalFileServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 multipartFile,
boolean unique,
String module,
String md5,
String remark)
文件上传
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFilepublic Result<FileVO> upload(org.springframework.web.multipart.MultipartFile multipartFile, boolean unique, String module, String md5, String remark) throws Exception
FileServiceupload 在接口中 FileServicemultipartFile - 文件unique - 是否唯一Exceptionpublic FileVO getFile(DownloadVO downloadVO)
FileServicegetFile 在接口中 FileServicepublic InputStream getFile(SysFileInfo sysFileInfo) throws Exception
getFile 在接口中 FileServiceExceptionpublic FileProperties getProperties()
getProperties 在接口中 FileServicepublic boolean delete(String fileId) throws Exception
FileServicedelete 在接口中 FileServiceExceptionpublic String saveFileInfo(File file, String md5, String remark)
FileServicesaveFileInfo 在接口中 FileServicefile - 文件Copyright © 2024. All rights reserved.