models

package
v0.0.0-...-09e5bc5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 2 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"`
	UserId      uuid.UUID          `bson:"userId" json:"userId"`
	Address     string             `bson:"address" json:"address"`
	Email       string             `bson:"email" json:"email"`
	Name        string             `bson:"name" json:"name"`
	PhoneNumber string             `bson:"phoneNumber" json:"phoneNumber"`
	Items       []OrderItem        `bson:"items" json:"items"`
}

type OrderItem

type OrderItem struct {
	ID        primitive.ObjectID `bson:"_id" json:"id"`
	CatalogId uuid.UUID          `bson:"catalogId" json:"catalogId"`
	Price     float32            `bson:"price" json:"price"`
	Quantity  uint               `bson:"quantity" json:"quantity"`
}

Jump to

Keyboard shortcuts

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