Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductGetHandler ¶
type ProductGetHandler cqrs.Handler[ProductGetQuery, *ProductGetRes]
func NewProductGetHandler ¶
func NewProductGetHandler(repo product.Repository) ProductGetHandler
type ProductGetQuery ¶
type ProductGetQuery struct {
ID string `param:"id" json:"id" validate:"required"`
}
type ProductGetRes ¶
type ProductGetRes struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.