order

package
v0.0.0-...-df9f0db Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderDto

type OrderDto struct {
	ID        string     `json:"id"`
	CreatedBy string     `json:"created_by"`
	CreatedAt *time.Time `json:"created_at"`
	Items     []string   `json:"items"`
}

func (*OrderDto) Validate

func (p *OrderDto) Validate() []val.ValidationError

type OrderService

type OrderService interface {
	CreateOrder(OrderDto) (o.Order, error)
	GetOrder(string) (o.Order, error)
	ListOrders() ([]o.Order, error)
	DeleteOrder(string) (int64, error)
}

func NewOrderService

func NewOrderService() OrderService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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