v1

package
v0.0.0-...-400441b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShopResponse

func NewShopResponse(shop domain.Shop) *shopResponse

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

Jump to

Keyboard shortcuts

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