order

package
v0.0.0-...-7c5fa43 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrderRequest

type CreateOrderRequest struct {
	CartUUID string    `json:"cartUUID"`
	Products []Product `json:"products"`
}

Create Order

func (*CreateOrderRequest) Validate

func (req *CreateOrderRequest) Validate() error

type Order

type Order struct {
	ID          uint64  `json:"orderID"`
	OrderNumber string  `json:"orderNumber"`
	CartUUID    string  `json:"cartUUID"`
	Amount      float64 `json:"amount"`
}

Order

type OrderProduct

type OrderProduct struct {
	OrderID   uint64  `json:"orderID"`
	ProductID uint64  `json:"productID"`
	Quantity  uint64  `json:"quantity"`
	Amount    float64 `json:"amount"`
}

OrderProduct

type Product

type Product struct {
	ProductID *uint64 `json:"productID"`
	Quantity  uint64  `json:"quantity"`
}

Create Order

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳