Documentation
¶
Index ¶
- func NewShopResponse(shop domain.Shop) *shopResponse
- type ShopControllerV1
- func (sc *ShopControllerV1) GetAll(ctx *fiber.Ctx) error
- func (sc *ShopControllerV1) GetByID(ctx *fiber.Ctx) error
- func (sc *ShopControllerV1) GetUserShop(ctx *fiber.Ctx) error
- func (sc *ShopControllerV1) InitRoutes(routeV1 fiber.Router, token token.Token)
- func (sc *ShopControllerV1) Update(ctx *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewShopResponse ¶
NewShopResponse creates a new instance of ShopResponse
Types ¶
type ShopControllerV1 ¶
type ShopControllerV1 struct {
// contains filtered or unexported fields
}
ShopControllerV1 is a struct for version 1 of ShopController
func New ¶
func New(uc domain.ShopUsecase, server *http.Http) *ShopControllerV1
New creates a new instance of ShopControllerV1
func (*ShopControllerV1) GetAll ¶
func (sc *ShopControllerV1) GetAll(ctx *fiber.Ctx) error
GetAll handles GET /shops request
func (*ShopControllerV1) GetByID ¶
func (sc *ShopControllerV1) GetByID(ctx *fiber.Ctx) error
GetByID handles GET /shops/:id request
func (*ShopControllerV1) GetUserShop ¶
func (sc *ShopControllerV1) GetUserShop(ctx *fiber.Ctx) error
GetUserShop handles GET /shops/my request
func (*ShopControllerV1) InitRoutes ¶
func (sc *ShopControllerV1) InitRoutes(routeV1 fiber.Router, token token.Token)
InitRoutes registers all routes for version 1
func (*ShopControllerV1) Update ¶
func (sc *ShopControllerV1) Update(ctx *fiber.Ctx) error
Update handles PUT /shops/:id request
Click to show internal directories.
Click to hide internal directories.