public class DbFileServiceImpl extends Object implements FileService
| 构造器和说明 |
|---|
DbFileServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
delete(String fileId)
根据文件ID删除文件
|
boolean |
deleteByBizId(String bizId) |
File |
getById(String fileId) |
FileVO |
getFile(DownloadVO downloadVO)
获取服务器上的文件
|
InputStream |
getFile(SysFileInfo sysFileInfo) |
FileProperties |
getProperties() |
SysFileInfo |
saveFileInfo(File file,
String md5,
String remark)
保存文件信息
|
Result<FileVO> |
upload(org.springframework.web.multipart.MultipartFile file,
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 file, boolean unique, String module, String md5, String remark) throws Exception
FileServiceupload 在接口中 FileServicefile - 文件unique - 是否唯一Exceptionpublic FileVO getFile(DownloadVO downloadVO)
FileServicegetFile 在接口中 FileServicepublic InputStream getFile(SysFileInfo sysFileInfo) throws Exception
getFile 在接口中 FileServiceExceptionpublic FileProperties getProperties()
getProperties 在接口中 FileServicepublic SysFileInfo saveFileInfo(File file, String md5, String remark)
FileServicesaveFileInfo 在接口中 FileServicefile - 文件public boolean delete(String fileId) throws Exception
FileServicedelete 在接口中 FileServiceExceptionpublic boolean deleteByBizId(String bizId)
deleteByBizId 在接口中 FileServicepublic File getById(String fileId)
getById 在接口中 FileServiceCopyright © 2024. All rights reserved.