update
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:
@@ -39,6 +39,49 @@ type EditPostReq struct {
|
||||
type EditPostResp struct {
|
||||
}
|
||||
|
||||
type GetPostReq struct {
|
||||
Post_id string `json:"post_id"`
|
||||
}
|
||||
|
||||
type GetPostResp struct {
|
||||
Post_id string `json:"post_id"`
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
Cover_image_url string `json:"cover_image_url"`
|
||||
Created_at int64 `json:"created_at"`
|
||||
Updated_at int64 `json:"updated_at"`
|
||||
}
|
||||
|
||||
type ListPostsReq struct {
|
||||
Page int `json:"page"`
|
||||
Page_size int `json:"page_size"`
|
||||
}
|
||||
|
||||
type ListPostsResp struct {
|
||||
Posts []ListPostsRespPosts `json:"posts"`
|
||||
Total_count int `json:"total_count"`
|
||||
}
|
||||
|
||||
type ListPostsRespPosts struct {
|
||||
Post_id string `json:"post_id"`
|
||||
Title string `json:"title"`
|
||||
Cover_image_url string `json:"cover_image_url"`
|
||||
Created_at int64 `json:"created_at"`
|
||||
Updated_at int64 `json:"updated_at"`
|
||||
}
|
||||
|
||||
type ListTagsReq struct {
|
||||
}
|
||||
|
||||
type ListTagsResp struct {
|
||||
Tags []ListTagsRespTags `json:"tags"`
|
||||
}
|
||||
|
||||
type ListTagsRespTags struct {
|
||||
Tag_id string `json:"tag_id"`
|
||||
Tag_name string `json:"tag_name"`
|
||||
}
|
||||
|
||||
type PingReq struct {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user