Documentation ¶
Index ¶
- type CommentParams
- type CreatePostParams
- type DeletePostParams
- type LikeParams
- type PostHandler
- func (p *PostHandler) CreateComment(c echo.Context) error
- func (p *PostHandler) CreatePost(c echo.Context) error
- func (p *PostHandler) CreateQouteRetweet(c echo.Context) error
- func (p *PostHandler) CreateRetweet(c echo.Context) error
- func (p *PostHandler) DeletePost(c echo.Context) error
- func (p *PostHandler) LikePost(c echo.Context) error
- func (p *PostHandler) PostRouter(e *echo.Group)
- func (p *PostHandler) UnlikePost(c echo.Context) error
- type QouteRetweetParams
- type RetweetParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentParams ¶
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 RetweetParams ¶
type RetweetParams struct {
PostID string `json:"post_id" form:"post_id" query:"post_id" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.