order

package
v0.0.0-...-e299a7d Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInsufficientStock = errors.New("Insufficient stock")
)

Functions

This section is empty.

Types

type OrderService

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

func NewOrderService

func NewOrderService(orderRepository order.OrderRepository) *OrderService

func (*OrderService) Create

func (s *OrderService) Create(product *entity.Product, orderQuantity int) error

type OrderServiceInterface

type OrderServiceInterface interface {
	Create(product *entity.Product, orderQuantity int) error
}

Jump to

Keyboard shortcuts

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