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 ListOrdersOutputDTO ¶
type ListOrdersUseCase ¶
type ListOrdersUseCase struct {
// contains filtered or unexported fields
}
func NewListOrdersUseCase ¶
func NewListOrdersUseCase(repository entity.OrderRepositoryInterface) *ListOrdersUseCase
func (*ListOrdersUseCase) Execute ¶
func (uc *ListOrdersUseCase) Execute() (ListOrdersOutputDTO, error)
type OrderInputDTO ¶
Click to show internal directories.
Click to hide internal directories.