@Service public class FileServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<FileMapper,club.gclmit.chaos.storage.properties.FileInfo> implements FileService
文件服务接口
| 构造器和说明 |
|---|
FileServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
batchDeleteStatusByKey(List<String> keys)
根据 key 批量删除文件
|
void |
batchUpdateStatusByKey(List<String> keys)
根据 key 批量修改文件状态
|
void |
deleteStatusByKey(String key)
根据 key 删除文件
|
List<club.gclmit.chaos.storage.properties.FileInfo> |
linkQueryFileName(String fileName)
根据文件名字模糊查询
|
List<club.gclmit.chaos.storage.properties.FileInfo> |
linkQueryKey(String key)
根据OSS key 模糊查询
|
List<club.gclmit.chaos.storage.properties.FileInfo> |
queryFileSizeBetween(Long startSize,
Long endSize)
根据文件大小区间查询
|
club.gclmit.chaos.storage.properties.FileInfo |
queryKey(String key)
根据文件 key 查看 FileInfo 对象
|
club.gclmit.chaos.storage.properties.FileInfo |
queryMD5(String md5)
根据文件 MD5 判断文件是否存在
|
void |
updateStatusByKey(String key)
根据 key 修改文件状态
|
club.gclmit.chaos.storage.properties.FileInfo |
uploadFile(org.springframework.web.multipart.MultipartFile file)
上传文件
|
closeSqlSession, count, currentModelClass, executeBatch, getBaseMapper, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdpublic club.gclmit.chaos.storage.properties.FileInfo uploadFile(org.springframework.web.multipart.MultipartFile file)
uploadFile 在接口中 FileServicepublic club.gclmit.chaos.storage.properties.FileInfo queryMD5(String md5)
queryMD5 在接口中 FileServicepublic club.gclmit.chaos.storage.properties.FileInfo queryKey(String key)
queryKey 在接口中 FileServicepublic void deleteStatusByKey(String key)
deleteStatusByKey 在接口中 FileServicepublic void batchDeleteStatusByKey(List<String> keys)
batchDeleteStatusByKey 在接口中 FileServicepublic void updateStatusByKey(String key)
updateStatusByKey 在接口中 FileServicepublic void batchUpdateStatusByKey(List<String> keys)
batchUpdateStatusByKey 在接口中 FileServicepublic List<club.gclmit.chaos.storage.properties.FileInfo> linkQueryKey(String key)
linkQueryKey 在接口中 FileServicepublic List<club.gclmit.chaos.storage.properties.FileInfo> linkQueryFileName(String fileName)
linkQueryFileName 在接口中 FileServicepublic List<club.gclmit.chaos.storage.properties.FileInfo> queryFileSizeBetween(Long startSize, Long endSize)
queryFileSizeBetween 在接口中 FileServiceCopyright © 2020. All rights reserved.