From b7e4ccd258d25ed53fa80c108000aa2fe518c057 Mon Sep 17 00:00:00 2001 From: xudawei Date: Thu, 10 Apr 2025 14:24:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:(REQ-3560)=20=E8=8E=B7=E5=8F=96=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=96=87=E4=BB=B6=E5=8A=A0=E4=B8=8A=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/axzo/oss/http/model/ApiSignUrlDownloadResponse.java | 2 +- .../oss/manager/api/dto/response/SignUrlDownloadResponse.java | 2 +- .../main/java/cn/axzo/oss/service/impl/FileServiceImpl.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/oss-http-api/src/main/java/cn/axzo/oss/http/model/ApiSignUrlDownloadResponse.java b/oss-http-api/src/main/java/cn/axzo/oss/http/model/ApiSignUrlDownloadResponse.java index 9a2cbe5..e695910 100644 --- a/oss-http-api/src/main/java/cn/axzo/oss/http/model/ApiSignUrlDownloadResponse.java +++ b/oss-http-api/src/main/java/cn/axzo/oss/http/model/ApiSignUrlDownloadResponse.java @@ -32,6 +32,6 @@ public class ApiSignUrlDownloadResponse { /** * 文件大小 */ - private Long fileSize; + private Long storageSize; } diff --git a/oss-manager-api/src/main/java/cn/axzo/oss/manager/api/dto/response/SignUrlDownloadResponse.java b/oss-manager-api/src/main/java/cn/axzo/oss/manager/api/dto/response/SignUrlDownloadResponse.java index 3860b4b..f031a05 100644 --- a/oss-manager-api/src/main/java/cn/axzo/oss/manager/api/dto/response/SignUrlDownloadResponse.java +++ b/oss-manager-api/src/main/java/cn/axzo/oss/manager/api/dto/response/SignUrlDownloadResponse.java @@ -33,6 +33,6 @@ public class SignUrlDownloadResponse { /** * 文件大小 */ - private Long fileSize; + private Long storageSize; } diff --git a/oss-service/src/main/java/cn/axzo/oss/service/impl/FileServiceImpl.java b/oss-service/src/main/java/cn/axzo/oss/service/impl/FileServiceImpl.java index 9352089..2c84b2f 100644 --- a/oss-service/src/main/java/cn/axzo/oss/service/impl/FileServiceImpl.java +++ b/oss-service/src/main/java/cn/axzo/oss/service/impl/FileServiceImpl.java @@ -981,7 +981,7 @@ public class FileServiceImpl implements FileService { .signUrl(this.fileManager.buildPublicXImageProcess(url, style)) .fileKey(item.getFileUuid()) .fileName(item.getFileName()) - .fileSize(item.fetchFileSize()) + .storageSize(item.fetchFileSize()) .build(); case PRIVATE_BUCKET://私有桶 - 临时授权链接 例如 http://xxx.png?Expire=a&AccessKeyId=b&Signature=c&repsonse-content-disposition=d String signUrl = this.fileManager.signUrlDownload(item.getBucketName(), tgtFileKey, Objects.nonNull(expire) ? expire : SIGN_URL_DOWNLOAD_EXPIRE_SECOND , item.getChannelCode(), item.getFileName(), style, hasFileName); @@ -989,7 +989,7 @@ public class FileServiceImpl implements FileService { .signUrl(UrlUtil.httpToHttps(signUrl)) .fileKey(item.getFileUuid()) .fileName(item.getFileName()) - .fileSize(item.fetchFileSize()) + .storageSize(item.fetchFileSize()) .build(); default: BizException.error(CodeEnum.CHANNEL_TYPE_NOT_EXIST);