出参中去掉url

This commit is contained in:
xudawei 2024-05-20 15:03:44 +08:00
parent 045a561c07
commit 24ff5efcbb
3 changed files with 1 additions and 9 deletions

View File

@ -18,10 +18,6 @@ public class GetObjectMetaResponse {
* 文件key
*/
private String key;
/**
* 文件url
*/
private String url;
/**
* 文件大小
*/

View File

@ -371,7 +371,7 @@ public class AliOssServiceImpl implements AliOssService {
return aliOssClient.getClient().getSimplifiedObjectMeta(bucketName, key);
} catch (Exception e) {
log.error("aliyun getObjectMeta exception, bucketName:{}, key:{}", bucketName, key, e);
throw new BizException(CodeEnum.GET_OBJECT_META_FAIL);
return new SimplifiedObjectMeta();
}
}
}

View File

@ -24,10 +24,6 @@ public class ManaGetObjectMetaResponse {
* 文件key
*/
private String key;
/**
* 文件url
*/
private String url;
/**
* 文件大小
*/