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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	ID        primitive.ObjectID `bson:"_id" json:"id" mongo:"-"`
	CreatedBy string             `mongo:"created_by" json:"created_by" bson:"created_by"`
	CreatedAt *time.Time         `mongo:"created_at" json:"created_at" bson:"created_at"`
	Invoice   float32            `mongo:"invoice" json:"invoice" bson:"invoice"`
	Items     []o.Product        `mongo:"items" json:"items" bson:"items"`
}

type OrderStore

type OrderStore interface {
	Create(Order) (Order, error)
	GetById(string) (Order, error)
	ListAll() ([]Order, error)
	DeleteById(string) (int64, error)
}

func NewOrderStore

func NewOrderStore() OrderStore

Jump to

Keyboard shortcuts

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