public class DbFileServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<SysFileInfoMapper,SysFileInfo> implements FileService
| 构造器和说明 |
|---|
DbFileServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
delete(String fileId)
根据文件ID删除文件
|
FileVO |
getFile(DownloadVO downloadVO)
获取服务器上的文件
|
FileProperties |
getProperties() |
String |
saveFileInfo(File file)
保存文件信息
|
Result |
upload(org.springframework.web.multipart.MultipartFile file,
boolean unique)
文件上传
|
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFilecount, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdpublic FileProperties getProperties()
getProperties 在接口中 FileServicepublic Result upload(org.springframework.web.multipart.MultipartFile file, boolean unique) throws Exception
FileServiceupload 在接口中 FileServicefile - 文件unique - 是否唯一Exceptionpublic FileVO getFile(DownloadVO downloadVO)
FileServicegetFile 在接口中 FileServicepublic String saveFileInfo(File file)
FileServicesaveFileInfo 在接口中 FileServicefile - 文件public boolean delete(String fileId)
FileServicedelete 在接口中 FileServiceCopyright © 2023. All rights reserved.