feat:(REQ-3560) 获取下载文件加上文件大小
This commit is contained in:
parent
89a2ce5a5d
commit
b7e4ccd258
@ -32,6 +32,6 @@ public class ApiSignUrlDownloadResponse {
|
||||
/**
|
||||
* 文件大小
|
||||
*/
|
||||
private Long fileSize;
|
||||
private Long storageSize;
|
||||
|
||||
}
|
||||
|
||||
@ -33,6 +33,6 @@ public class SignUrlDownloadResponse {
|
||||
/**
|
||||
* 文件大小
|
||||
*/
|
||||
private Long fileSize;
|
||||
private Long storageSize;
|
||||
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user