public interface FileService extends com.baomidou.mybatisplus.extension.service.IService<SysFileInfo>
| 限定符和类型 | 方法和说明 |
|---|---|
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)
保存文件信息
|
Result |
upload(org.springframework.web.multipart.MultipartFile file,
boolean unique)
文件上传
|
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, 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, updateByIdResult upload(org.springframework.web.multipart.MultipartFile file, boolean unique) throws Exception
file - 文件unique - 是否唯一ExceptionFileVO getFile(DownloadVO downloadVO)
InputStream getFile(SysFileInfo sysFileInfo) throws Exception
ExceptionFileProperties getProperties()
default File createFile(String fileName, boolean isCreate) throws Exception
fileName - 文件名称isCreate - 是否生成文件ExceptionCopyright © 2024. All rights reserved.