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 ListOrderUseCase ¶
type ListOrderUseCase struct {
OrderRepository entity.OrderRepositoryInterface
}
func NewListOrderUseCase ¶
func NewListOrderUseCase( OrderRepository entity.OrderRepositoryInterface, ) *ListOrderUseCase
func (*ListOrderUseCase) Execute ¶
func (c *ListOrderUseCase) Execute() (orders []OrderOutputDTO, err error)
type OrderInputDTO ¶
Click to show internal directories.
Click to hide internal directories.