usecase

package
v0.0.0-...-b49a733 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: 0

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

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

type OrderInputDTO struct {
	ID    string
	Price float64
	Tax   float64
}

type OrderOutputDTO

type OrderOutputDTO struct {
	ID         string
	Price      float64
	Tax        float64
	FinalPrice float64
}

Jump to

Keyboard shortcuts

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