类 FileServiceImpl
java.lang.Object
xyz.migoo.framework.infra.service.file.FileServiceImpl
- 所有已实现的接口:
FileService
文件 Service 实现类
- 作者:
- xiaomi
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createFile(String name, String path, byte[] content, String source) 保存文件,并返回文件的访问路径createFile(FileCreateReqVO createReqVO) 创建文件voiddeleteFile(Long id) 删除文件byte[]getFileContent(Long configId, String path) 获得文件内容getFilePage(FilePageReqVO pageReqVO) 获得文件分页getFilePresignedUrl(String path) 生成文件预签名地址信息
-
构造器详细资料
-
FileServiceImpl
public FileServiceImpl()
-
-
方法详细资料
-
getFilePage
从接口复制的说明:FileService获得文件分页- 指定者:
getFilePage在接口中FileService- 参数:
pageReqVO- 分页查询- 返回:
- 文件分页
-
createFile
从接口复制的说明:FileService保存文件,并返回文件的访问路径- 指定者:
createFile在接口中FileService- 参数:
name- 文件名称path- 文件路径content- 文件内容source- 文件来源- 返回:
- 文件路径
-
createFile
从接口复制的说明:FileService创建文件- 指定者:
createFile在接口中FileService- 参数:
createReqVO- 创建信息- 返回:
- 编号
-
deleteFile
从接口复制的说明:FileService删除文件- 指定者:
deleteFile在接口中FileService- 参数:
id- 编号- 抛出:
Exception
-
getFileContent
从接口复制的说明:FileService获得文件内容- 指定者:
getFileContent在接口中FileService- 参数:
configId- 配置编号path- 文件路径- 返回:
- 文件内容
- 抛出:
Exception
-
getFilePresignedUrl
从接口复制的说明:FileService生成文件预签名地址信息- 指定者:
getFilePresignedUrl在接口中FileService- 参数:
path- 文件路径- 返回:
- 预签名地址信息
- 抛出:
Exception
-