Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculateFinalPriceUseCase ¶
type CalculateFinalPriceUseCase struct {
OrderRepository entity.OrderRepositoryInterface
}
func NewCalculateFinalPriceUseCase ¶
func NewCalculateFinalPriceUseCase(orderRepository database.OrderRepository) *CalculateFinalPriceUseCase
func (*CalculateFinalPriceUseCase) Execute ¶
func (c *CalculateFinalPriceUseCase) Execute(input OrderInputDTO) (*OrderOutputDTO, error)
type GetTotalOutputDTO ¶
type GetTotalOutputDTO struct {
Total int
}
type GetTotalUseCase ¶
type GetTotalUseCase struct {
OrderRepository entity.OrderRepositoryInterface
}
func NewGetTotalUseCase ¶
func NewGetTotalUseCase(orderRepository entity.OrderRepositoryInterface) *GetTotalUseCase
func (*GetTotalUseCase) Execute ¶
func (c *GetTotalUseCase) Execute() (*GetTotalOutputDTO, error)
type OrderInputDTO ¶
Click to show internal directories.
Click to hide internal directories.