http

package
v0.0.0-...-2f27ceb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonsterRoutes

func MonsterRoutes(monsterGroup *echo.Group, h monster.DeliveryHandlers, au auth.Usecase, cfg *config.Config, mw *middleware.MiddlewareManager)

func NewMonsterHandler

func NewMonsterHandler(cfg *config.Config, monsterTypeUsecase monster.MonsterTypeUsecase, monsterUsecase monster.MonsterUsecase, log logger.Logger) monster.DeliveryHandlers

Types

type MonsterHandler

type MonsterHandler struct {
	// contains filtered or unexported fields
}

func (*MonsterHandler) AddMonsterType

func (h *MonsterHandler) AddMonsterType() echo.HandlerFunc

AddMonsterType godoc @Summary Add monster type @Description add monster type @Tags Auth @Accept json @Param id path int true "id" @Produce json @Success 200 {object} domain.MonsterTypeBody @Router /monster/{id} [post]

func (*MonsterHandler) CreateMonster

func (h *MonsterHandler) CreateMonster() echo.HandlerFunc

CreateMonster godoc @Summary Create a new monster @Description returns monster @Tags Auth @Accept json @Produce json @Success 201 {object} domain.Monster @Router /monster [post]

func (*MonsterHandler) CreateMonsterType

func (h *MonsterHandler) CreateMonsterType() echo.HandlerFunc

CreateMonsterType godoc @Summary Create a new monster type @Description returns monster type @Tags Auth @Accept json @Produce json @Success 201 {object} domain.MonsterType @Router /monster/type [post]

func (*MonsterHandler) DeleteMonster

func (h *MonsterHandler) DeleteMonster() echo.HandlerFunc

DeleteMonster godoc @Summary Delete monster @Description delete existing monster @Tags Auth @Accept json @Param id path int true "id" @Produce json @Success 200 {string} string "ok" @Failure 500 {object} httpErr.RestError @Router /monster/{id} [put]

func (*MonsterHandler) DeleteMonsterType

func (h *MonsterHandler) DeleteMonsterType() echo.HandlerFunc

DeleteMonsterType godoc @Summary Delete monster type @Description delete existing monster type @Tags Auth @Accept json @Param id path int true "id" @Produce json @Success 200 {string} string "ok" @Failure 500 {object} httpErr.RestError @Router /monster/type/{id} [put]

func (*MonsterHandler) DetailMonster

func (h *MonsterHandler) DetailMonster() echo.HandlerFunc

DetailMonster godoc @Summary Detail monster @Description Get monster detail @Tags Auth @Accept json @Param id path int true "id" @Produce json @Success 200 {object} domain.Monster @Router /monster/{id} [get]

func (*MonsterHandler) DetailMonsterType

func (h *MonsterHandler) DetailMonsterType() echo.HandlerFunc

DetailMonsterType godoc @Summary Detail monster type @Description Get monster type detail @Tags Auth @Accept json @Param id path int true "id" @Produce json @Success 200 {object} domain.MonsterType @Router /monster/type/{id} [get]

func (*MonsterHandler) ListMonster

func (h *MonsterHandler) ListMonster() echo.HandlerFunc

ListMonster godoc @Summary Get monster list @Description list of monster @Tags Auth @Accept json @Produce json @Success 200 {object} domain.MonsterList @Router /monster/list [get]

func (*MonsterHandler) ListMonsterType

func (h *MonsterHandler) ListMonsterType() echo.HandlerFunc

ListMonsterType godoc @Summary Get monster type list @Description list of monster types @Tags Auth @Accept json @Produce json @Success 200 {object} domain.MonsterTypeList @Router /monster/type/list [get]

func (*MonsterHandler) UpdateMonster

func (h *MonsterHandler) UpdateMonster() echo.HandlerFunc

UpdateMonster godoc @Summary Update monster @Description update existing monster @Tags Auth @Accept json @Param id path int true "id" @Produce json @Success 200 {object} domain.MonsterUpdate @Router /monster/{id} [put]

func (*MonsterHandler) UpdateMonsterType

func (h *MonsterHandler) UpdateMonsterType() echo.HandlerFunc

UpdateMonsterType godoc @Summary Update monster type @Description update existing monster type @Tags Auth @Accept json @Param id path int true "id" @Produce json @Success 200 {object} domain.MonsterTypeUpdate @Router /monster/type/{id} [put]

Jump to

Keyboard shortcuts

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