feat: (REQ-3540) 文件克隆加上bizScene

This commit is contained in:
xudawei 2025-03-20 17:13:30 +08:00
parent d1a120e915
commit 7ce0fff910

View File

@ -49,6 +49,7 @@ public class OssClient {
public String copy(String srcOssFileKey, String fullFileName) {
ServerFileBatchCopyObjectRequest copyRequest = new ServerFileBatchCopyObjectRequest();
copyRequest.setAppCode(docProps.getOssAppCode());
copyRequest.setBizScene(docProps.getOssBizScene());
ServerFileCopyObjectRequest item = new ServerFileCopyObjectRequest();
item.setFileUuid(UUIDUtil.uuidString());
item.setSrcFileKey(srcOssFileKey);
@ -83,6 +84,7 @@ public class OssClient {
private Map<String, String> copy0(List<String> ossFileKeys) {
ServerFileBatchCopyObjectRequest copyRequest = new ServerFileBatchCopyObjectRequest();
copyRequest.setAppCode(docProps.getOssAppCode());
copyRequest.setBizScene(docProps.getOssBizScene());
copyRequest.setCopyObjects(new HashSet<>());
for (String ossFileKey : new HashSet<>(ossFileKeys)) {
ServerFileCopyObjectRequest item = new ServerFileCopyObjectRequest();