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
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 52s
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user