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

This commit is contained in:
2025-10-25 12:21:17 +08:00
parent e21f9e6d1a
commit aaa89bf8b7
9 changed files with 174 additions and 27 deletions

View File

@@ -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
}