models

package
v0.0.0-...-9d7ceaa Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	Id       bson.ObjectId `json:"id,omitempty" bson:"_id,omitempty"`
	Name     string        `json:"name" bson:"name"`
	Email    string        `json:"email" bson:"email"`
	Products []Product     `json:"products,omitempty" bson:"products,omitempty"`
}

type Product

type Product struct {
	Id          bson.ObjectId `json:"id,omitempty" bson:"_id,omitempty"`
	Price       float64       `json:"price" bson:"price"`
	Image       string        `json:"image" bson:"image"`
	Brand       string        `json:"brand" bson:"brand"`
	Title       string        `json:"title" bson:"title"`
	ReviewScore int           `json:"reviewScore" bson:"reviewScore"`
}

type User

type User struct {
	Username string `json:"username" bson:"username"`
	Password string `json:"password" bson:"password"`
}

Jump to

Keyboard shortcuts

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