commands

package
v0.0.0-...-3a9fddd Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddProduct

type AddProduct struct {
	ID          string
	StoreID     string
	Name        string
	Description string
	SKU         string
	Price       float64
}

type AddProductHandler

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

func NewAddProductHandler

func NewAddProductHandler(products domain.ProductRepository) AddProductHandler

func (AddProductHandler) AddProduct

func (h AddProductHandler) AddProduct(ctx context.Context, cmd AddProduct) error

type CreateStore

type CreateStore struct {
	ID       string
	Name     string
	Location string
}

type CreateStoreHandler

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

func NewCreateStoreHandler

func NewCreateStoreHandler(stores domain.StoreRepository) CreateStoreHandler

func (CreateStoreHandler) CreateStore

func (h CreateStoreHandler) CreateStore(ctx context.Context, cmd CreateStore) error

type DecreaseProductPrice

type DecreaseProductPrice struct {
	ID    string
	Price float64
}

type DecreaseProductPriceHandler

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

func NewDecreaseProductPriceHandler

func NewDecreaseProductPriceHandler(products domain.ProductRepository) DecreaseProductPriceHandler

func (DecreaseProductPriceHandler) DecreaseProductPrice

func (h DecreaseProductPriceHandler) DecreaseProductPrice(ctx context.Context, cmd DecreaseProductPrice) error

type DisableParticipation

type DisableParticipation struct {
	ID string
}

type DisableParticipationHandler

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

func NewDisableParticipationHandler

func NewDisableParticipationHandler(stores domain.StoreRepository) DisableParticipationHandler

func (DisableParticipationHandler) DisableParticipation

func (h DisableParticipationHandler) DisableParticipation(ctx context.Context, cmd DisableParticipation) error

type EnableParticipation

type EnableParticipation struct {
	ID string
}

type EnableParticipationHandler

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

func NewEnableParticipationHandler

func NewEnableParticipationHandler(stores domain.StoreRepository) EnableParticipationHandler

func (EnableParticipationHandler) EnableParticipation

func (h EnableParticipationHandler) EnableParticipation(ctx context.Context, cmd EnableParticipation) error

type IncreaseProductPrice

type IncreaseProductPrice struct {
	ID    string
	Price float64
}

type IncreaseProductPriceHandler

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

func NewIncreaseProductPriceHandler

func NewIncreaseProductPriceHandler(products domain.ProductRepository) IncreaseProductPriceHandler

func (IncreaseProductPriceHandler) IncreaseProductPrice

func (h IncreaseProductPriceHandler) IncreaseProductPrice(ctx context.Context, cmd IncreaseProductPrice) error

type RebrandProduct

type RebrandProduct struct {
	ID          string
	Name        string
	Description string
}

type RebrandProductHandler

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

func NewRebrandProductHandler

func NewRebrandProductHandler(products domain.ProductRepository) RebrandProductHandler

func (RebrandProductHandler) RebrandProduct

func (h RebrandProductHandler) RebrandProduct(ctx context.Context, cmd RebrandProduct) error

type RebrandStore

type RebrandStore struct {
	ID   string
	Name string
}

type RebrandStoreHandler

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

func NewRebrandStoreHandler

func NewRebrandStoreHandler(stores domain.StoreRepository) RebrandStoreHandler

func (RebrandStoreHandler) RebrandStore

func (h RebrandStoreHandler) RebrandStore(ctx context.Context, cmd RebrandStore) error

type RemoveProduct

type RemoveProduct struct {
	ID string
}

type RemoveProductHandler

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

func NewRemoveProductHandler

func NewRemoveProductHandler(products domain.ProductRepository) RemoveProductHandler

func (RemoveProductHandler) RemoveProduct

func (h RemoveProductHandler) RemoveProduct(ctx context.Context, cmd RemoveProduct) error

Jump to

Keyboard shortcuts

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