usecase

package
v0.0.0-...-107063d Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderInputDTO

type OrderInputDTO struct {
	Price float64 `json:"price"`
	Tax   float64 `json:"tax"`
}

type OrderOutputDTO

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

type OrderUseCase

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

func NewOrderUseCase

func NewOrderUseCase(repository entity.OrderRepositoryInterface) *OrderUseCase

func (*OrderUseCase) List

func (o *OrderUseCase) List() ([]OrderOutputDTO, error)

func (*OrderUseCase) Save

func (o *OrderUseCase) Save(input OrderInputDTO) (OrderOutputDTO, error)

Jump to

Keyboard shortcuts

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