Refactor blog post logic to standardize field names and improve error handling; implement pagination for post listing and add tag retrieval functionality.
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 53s
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 53s
This commit is contained in:
@@ -37,7 +37,7 @@ func (l *DownloadPresignedURLLogic) DownloadPresignedURL(req *types.DownloadPres
|
||||
// Generate presigned GET URL
|
||||
getObjectInput := &s3.GetObjectInput{
|
||||
Bucket: &l.svcCtx.Config.S3.Bucket,
|
||||
Key: &req.File_key,
|
||||
Key: &req.FileKey,
|
||||
}
|
||||
|
||||
presignedReq, err := presignClient.PresignGetObject(l.ctx, getObjectInput, func(opts *s3.PresignOptions) {
|
||||
@@ -49,7 +49,7 @@ func (l *DownloadPresignedURLLogic) DownloadPresignedURL(req *types.DownloadPres
|
||||
}
|
||||
|
||||
return &types.DownloadPresignedURLResp{
|
||||
Url: presignedReq.URL,
|
||||
Expire_at: expireAt,
|
||||
Url: presignedReq.URL,
|
||||
ExpireAt: expireAt,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user