Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOrderUseCase ¶
type CreateOrderUseCase struct { OrderRepository entity.OrderRepositoryInterface OrderCreated events.EventInterface EventDispatcher events.EventDispatcherInterface }
func NewCreateOrderUseCase ¶
func NewCreateOrderUseCase( OrderRepository entity.OrderRepositoryInterface, OrderCreated events.EventInterface, EventDispatcher events.EventDispatcherInterface, ) *CreateOrderUseCase
func (*CreateOrderUseCase) Execute ¶
func (c *CreateOrderUseCase) Execute(input OrderInputDTO) (OrderOutputDTO, error)
type ListOrdersUseCase ¶
type ListOrdersUseCase struct { OrderRepository entity.OrderRepositoryInterface OrdersListed events.EventInterface EventDispatcher events.EventDispatcherInterface }
func NewListOrdersUseCase ¶
func NewListOrdersUseCase( OrderRepository entity.OrderRepositoryInterface, OrdersListed events.EventInterface, EventDispatcher events.EventDispatcherInterface, ) *ListOrdersUseCase
func (*ListOrdersUseCase) Execute ¶
func (c *ListOrdersUseCase) Execute() ([]ListedOrdersOutputDTO, error)
type ListedOrdersOutputDTO ¶
type OrderInputDTO ¶
Click to show internal directories.
Click to hide internal directories.