Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserHandlers ¶
Types ¶
type CommandBus ¶
type UserHandlers ¶
type UserHandlers struct {
Commands CommandBus
Queries QueryBus
Jwt *jwt.JWT
Logger logger.Logger
// contains filtered or unexported fields
}
func (*UserHandlers) Fetch ¶
func (h *UserHandlers) Fetch(c echo.Context) error
Fetch godoc @Summary Fetch users @Description Fetch users handler @Tags User @Accept json @Produce json @Success 201 {object} entity.User @Router /user [get]
func (*UserHandlers) GetByID ¶
func (h *UserHandlers) GetByID(c echo.Context) error
GetByID godoc @Summary Get by id user @Description Get by id user handler @Tags User @Accept json @Produce json @Param id path int true "user_id" @Success 200 {object} entity.User @Router /user/{id} [get]
Click to show internal directories.
Click to hide internal directories.