Documentation ¶
Index ¶
- func CreatePost(c *fiber.Ctx) error
- func CreateReply(c *fiber.Ctx) error
- func CreateRepost(c *fiber.Ctx) error
- func DeletePost(c *fiber.Ctx) error
- func GetPost(c *fiber.Ctx) error
- func GetPostsByUser(c *fiber.Ctx) error
- func LikePost(c *fiber.Ctx) error
- func ListPosts(c *fiber.Ctx) error
- func UnlikePost(c *fiber.Ctx) error
- type CreatePostDTO
- type ReplyDTO
- type RepostDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePost ¶
func CreatePost(c *fiber.Ctx) error
func CreateReply ¶
func CreateReply(c *fiber.Ctx) error
func CreateRepost ¶
func CreateRepost(c *fiber.Ctx) error
func DeletePost ¶
func DeletePost(c *fiber.Ctx) error
func GetPostsByUser ¶
func GetPostsByUser(c *fiber.Ctx) error
func ListPosts ¶
func ListPosts(c *fiber.Ctx) error
ListPosts returns a list of all posts on the platform.
func UnlikePost ¶
func UnlikePost(c *fiber.Ctx) error
Types ¶
type CreatePostDTO ¶
type CreatePostDTO struct {
Content string `json:"content" validate:"required,max=512,min=1,notblank"`
}
Click to show internal directories.
Click to hide internal directories.