type Handler struct { Tag service.TagService View View }
func NewHandler(p Params) Handler
func (h *Handler) List(c echo.Context) error
swagger:route GET /tags tags listTags
This endpoint lists all available tags
Responses: default: HTTPError 200: TagList 500: HTTPError
type Item struct { // read-only: true // example: 12 ID uint `json:"id"` // example: RPG // read-only: true Name string `json:"name"` }
type List []Item
type Params struct { fx.In Tag service.TagService View View }
type View struct{}
func NewView() View
func (v View) View(t entity.Tag) Item
func (v View) ViewList(tags []entity.Tag) List