Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePost ¶
func CreatePost(c *fiber.Ctx) error
func DeletePost ¶
func DeletePost(c *fiber.Ctx) error
func GetPostComments ¶
func GetPostComments(c *fiber.Ctx) error
func UpdatePost ¶
func UpdatePost(c *fiber.Ctx) error
Types ¶
type CommentsResponse ¶
type CommentsResponse struct { Message string `json:"message"` Comments []models.CommentResponseContent `json:"comments"` }
type NewPostBody ¶
type NewPostBody struct {
Content string `json:"content" validate:"required,min=1,max=2000"`
}
type PostsResponse ¶
type PostsResponse struct { Message string `json:"message"` Posts []models.PostResponseContent `json:"posts"` }
type UpdatePostBody ¶
Click to show internal directories.
Click to hide internal directories.