posts

package
v0.0.0-...-1c7d376 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 GetPost

func GetPost(c *fiber.Ctx) error

func GetPostsByUser

func GetPostsByUser(c *fiber.Ctx) error

func LikePost

func LikePost(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"`
}

type ReplyDTO

type ReplyDTO struct {
	Content string `json:"content" validate:"required,max=512,min=1,notblank"`
}

type RepostDTO

type RepostDTO struct {
	Content string `json:"content" validate:"omitempty,max=512,min=1,notblank"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL