shared

package
v0.0.0-...-c1a9489 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Address string `bson:"address,omitempty"`
	Phone   string `bson:"phone,omitempty"`
}

type Cart

type Cart struct {
	ItemID   primitive.ObjectID `bson:"item_id"`
	Quantity uint32             `bson:"quantity"`
}

type Item

type Item struct {
	ID          string   `bson:"_id,omitempty"`
	Name        string   `bson:"name,omitempty"`
	Link        string   `bson:"link,omitempty"`
	Description string   `bson:"description,omitempty"`
	Number      int32    `bson:"number,omitempty"`
	Price       float32  `bson:"price,omitempty"`
	Poster      string   `bson:"poster,omitempty"`
	Photos      []string `bson:"photos,omitempty"`
}

type User

type User struct {
	ID       string  `bson:"_id,omitempty"`
	Username string  `bson:"username,omitempty"`
	Email    string  `bosn:"email,omitempty"`
	Password string  `bson:"password,omitempty"`
	Phone    string  `bson:"phone,omitempty"`
	Role     uint32  `bson:"role,omitempty"`
	Status   bool    `bson:"status,omitempty"`
	Address  Address `bson:"address,omitempty"`
	Cart     []Item  `bson:"cart,omitempty"`
}

Jump to

Keyboard shortcuts

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