Documentation ¶
Index ¶
- type PostHandler
- func (h *PostHandler) AddLike(ctx *gin.Context) (r any, err error)
- func (h *PostHandler) DeleteLike(ctx *gin.Context) (r any, err error)
- func (h *PostHandler) GetHomePosts(ctx *gin.Context) (listVO api.ListVO[*domain.SummaryPostVO], err error)
- func (h *PostHandler) GetPostBySug(ctx *gin.Context) (vo *domain.DetailPostVO, err error)
- func (h *PostHandler) GetPosts(ctx *gin.Context, req *domain.PostRequest) (pageVO api.PageVO[*domain.SummaryPostVO], err error)
- func (h *PostHandler) RegisterGinRoutes(engine *gin.Engine)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostHandler ¶
type PostHandler struct {
// contains filtered or unexported fields
}
func NewPostHandler ¶
func NewPostHandler(serv service.IPostService) *PostHandler
func (*PostHandler) DeleteLike ¶
func (h *PostHandler) DeleteLike(ctx *gin.Context) (r any, err error)
func (*PostHandler) GetHomePosts ¶
func (h *PostHandler) GetHomePosts(ctx *gin.Context) (listVO api.ListVO[*domain.SummaryPostVO], err error)
func (*PostHandler) GetPostBySug ¶
func (h *PostHandler) GetPostBySug(ctx *gin.Context) (vo *domain.DetailPostVO, err error)
func (*PostHandler) GetPosts ¶
func (h *PostHandler) GetPosts(ctx *gin.Context, req *domain.PostRequest) (pageVO api.PageVO[*domain.SummaryPostVO], err error)
func (*PostHandler) RegisterGinRoutes ¶
func (h *PostHandler) RegisterGinRoutes(engine *gin.Engine)
Click to show internal directories.
Click to hide internal directories.