新增安全会议纪要相关接口

This commit is contained in:
lcj
2025-04-14 18:08:26 +08:00
parent c6842a00f2
commit 02d577e604
23 changed files with 1351 additions and 24 deletions

View File

@ -238,8 +238,8 @@ public class OssClient {
/**
* 下载文件从 Amazon S3 到 输出流
*
* @param key 文件在 Amazon S3 中的对象键
* @param out 输出流
* @param key 文件在 Amazon S3 中的对象键
* @param out 输出流
* @param consumer 自定义处理逻辑
* @return 输出流中写入的字节数(长度)
* @throws OssException 如果下载失败,抛出自定义异常
@ -317,6 +317,18 @@ public class OssClient {
return upload(new ByteArrayInputStream(data), getPath(properties.getPrefix(), suffix), Long.valueOf(data.length), contentType);
}
/**
* 上传 byte[] 数据到 Amazon S3使用指定的文件路径构造对象键。
*
* @param data 要上传的 byte[] 数据
* @param filePath 对象键的文件路径
* @return UploadResult 包含上传后的文件信息
* @throws OssException 如果上传失败,抛出自定义异常
*/
public UploadResult uploadFilePath(byte[] data, String filePath, String contentType) {
return upload(new ByteArrayInputStream(data), filePath, Long.valueOf(data.length), contentType);
}
/**
* 上传 InputStream 到 Amazon S3使用指定的后缀构造对象键。
*