Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContentHandler ¶
func NewContentHandler(e *echo.Echo, r *echo.Group, us domain.ContentUsecase)
NewContentHandler will initialize the contents/ resources endpoint
Types ¶
type ContentHandler ¶
type ContentHandler struct {
AUsecase domain.ContentUsecase
}
ContentHandler represent the httphandler for content
func (*ContentHandler) Delete ¶
func (a *ContentHandler) Delete(c echo.Context) error
Delete will delete content by given param
func (*ContentHandler) FetchContents ¶
func (a *ContentHandler) FetchContents(c echo.Context) error
FetchContents will fetch the content based on given params
func (*ContentHandler) GetByID ¶
func (a *ContentHandler) GetByID(c echo.Context) error
GetByID will get content by given id
func (*ContentHandler) Store ¶
func (a *ContentHandler) Store(c echo.Context) (err error)
Store will store the content by given request body
type ResponseError ¶
type ResponseError struct {
Message string `json:"message"`
}
ResponseError represent the reseponse error struct
Click to show internal directories.
Click to hide internal directories.