model

package
v0.0.0-...-8176360 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderCollection       = "order"
	OrderDetailCollection = "orderdetail"
)
View Source
const (
	OrderPaid       int = 1
	OrderOnProgress int = 2
	OrderComplete   int = 3
	OrderCancel     int = 4
	OrderRefund     int = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit struct {
	CreatedDt *time.Time `bson:"crdt"`
	UpdatedDt *time.Time `bson:"updt"`
}

Audit ...

type Order

type Order struct {
	ID          bson.ObjectId `bson:"_id,omitempty"`
	UserID      string        `bson:"userid"`
	NoInvoice   string        `bson:"noinv"`
	Status      bool          `bson:"status"`
	OrderDetail []OrderDetail
	Audit
}

Order ...

type OrderDetail

type OrderDetail struct {
	ProductID string `bson:"productid"`
	Qty       int64  `bson:"qty"`
}

OrderDetail ...

Jump to

Keyboard shortcuts

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