handler

package
v0.0.0-...-a783adc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) AddLike

func (h *PostHandler) AddLike(ctx *gin.Context) (r any, err error)

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)

Jump to

Keyboard shortcuts

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