order_usecase

package
v0.0.0-...-52e64fa Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCustomerNotFound = errors.New("customer not found")

Functions

func NewOrderService

func NewOrderService() *orderService

Types

type CreateDTO

type CreateDTO struct {
	CustomerID   primitive.ObjectID
	OrderDetails []OrderDetailDTO
	OrderDate    time.Time
	Status       string
}

type OrderDetailDTO

type OrderDetailDTO struct {
	ProductID primitive.ObjectID
	Quantity  int
	Price     float64
}

Jump to

Keyboard shortcuts

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