Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOrderParams ¶
type OrderDetails ¶
type OrderDetails struct { Order *entity.Order Customer *entity.Customer OrderLines []*OrderLineDetails }
type OrderLineDetails ¶
type OrderLineDetails struct { Count int CatalogItem *entity.CatalogItem }
type OrderUseCase ¶
type OrderUseCase interface { GetOrderCreationResources(ctx context.Context) ([]entity.Customer, []entity.CatalogItem, error) GetOrder(ctx context.Context, id string) (*OrderDetails, error) ListOrders(ctx context.Context) ([]*OrderDetails, error) CreateOrder(ctx context.Context, params *CreateOrderParams) error DeleteOrder(ctx context.Context, id string) error }
func NewOrderUseCase ¶
func NewOrderUseCase( cr repository.CustomerRepository, cir repository.CatalogItemRepository, or repository.OrderRepository, ) OrderUseCase
Click to show internal directories.
Click to hide internal directories.