Implement CRUD operations for blog posts with Create, Edit, and Delete handlers
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 52s

This commit is contained in:
2025-10-25 11:34:59 +08:00
parent 166382ffa8
commit b05f797eb1
9 changed files with 371 additions and 0 deletions

View File

@@ -3,6 +3,23 @@
package types
type CreatePostReq struct {
Title string `json:"title"`
Content string `json:"content"`
Cover_image_key string `json:"cover_image_key"`
}
type CreatePostResp struct {
Post_id string `json:"post_id"`
}
type DeletePostReq struct {
Post_id string `json:"post_id"`
}
type DeletePostResp struct {
}
type DownloadPresignedURLReq struct {
File_key string `json:"file_key"` // Key to identify the file to download
}
@@ -12,6 +29,16 @@ type DownloadPresignedURLResp struct {
Expire_at int64 `json:"expire_at"` // Expiration timestamp
}
type EditPostReq struct {
Post_id string `json:"post_id"`
Title string `json:"title"`
Content string `json:"content"`
Cover_image_key string `json:"cover_image_key"`
}
type EditPostResp struct {
}
type PingReq struct {
}