post

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentParams

type CommentParams struct {
	PostID  string `json:"post_id" form:"post_id" query:"post_id" validate:"required"`
	Comment string `json:"comment" form:"comment" query:"comment" validate:"required"`
}

type CreatePostParams

type CreatePostParams struct {
	PictureDescription string `json:"picture_description" form:"picture_description" validate:"required"`
}

type DeletePostParams

type DeletePostParams struct {
	PostID string `json:"post_id" form:"post_id" query:"post_id" validate:"required"`
}

type LikeParams

type LikeParams struct {
	PostID string `json:"post_id" form:"post_id" query:"post_id" validate:"required"`
}

type PostHandler

type PostHandler struct {
	// contains filtered or unexported fields
}

func NewPostHandler

func NewPostHandler(post post.PostContract, helper handler.Helper) *PostHandler

func (*PostHandler) CreateComment

func (p *PostHandler) CreateComment(c echo.Context) error

func (*PostHandler) CreatePost

func (p *PostHandler) CreatePost(c echo.Context) error

func (*PostHandler) CreateQouteRetweet

func (p *PostHandler) CreateQouteRetweet(c echo.Context) error

func (*PostHandler) CreateRetweet

func (p *PostHandler) CreateRetweet(c echo.Context) error

func (*PostHandler) DeletePost

func (p *PostHandler) DeletePost(c echo.Context) error

func (*PostHandler) LikePost

func (p *PostHandler) LikePost(c echo.Context) error

func (*PostHandler) PostRouter

func (p *PostHandler) PostRouter(e *echo.Group)

func (*PostHandler) UnlikePost

func (p *PostHandler) UnlikePost(c echo.Context) error

type QouteRetweetParams

type QouteRetweetParams struct {
	PostID string `json:"post_id" form:"post_id" query:"post_id" validate:"required"`
	Qoute  string `json:"qoute" form:"qoute" query:"qoute" validate:"required"`
}

type RetweetParams

type RetweetParams struct {
	PostID string `json:"post_id" form:"post_id" query:"post_id" validate:"required"`
}

Jump to

Keyboard shortcuts

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