usecase

package
v0.0.0-...-ee0fcfa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrderInputDTO

type CreateOrderInputDTO struct {
	Id    string  `json:"id"`
	Price float64 `json:"price"`
	Tax   float64 `json:"tax"`
}

type CreateOrderOutputDTO

type CreateOrderOutputDTO struct {
	Id         string  `json:"id"`
	Price      float64 `json:"price"`
	Tax        float64 `json:"tax"`
	FinalPrice float64 `json:"final_price"`
}

type CreateOrderUseCase

type CreateOrderUseCase struct {
	// contains filtered or unexported fields
}

func NewCreateOrderUseCase

func NewCreateOrderUseCase(repository entity.OrderRepository, event events.Event, dispatcher *events.EventDispatcher) *CreateOrderUseCase

func (*CreateOrderUseCase) Execute

type ListOrdersOutputDTO

type ListOrdersOutputDTO []entity.Order

type ListOrdersUseCase

type ListOrdersUseCase struct {
	// contains filtered or unexported fields
}

func NewListOrdersUseCase

func NewListOrdersUseCase(repository entity.OrderRepository) *ListOrdersUseCase

func (*ListOrdersUseCase) Execute

func (uc *ListOrdersUseCase) Execute() (ListOrdersOutputDTO, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL