model

package
v0.0.0-...-d57e063 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2016 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Company    string `json:"company"`
	FirstName  string `json:"firstname"`
	LastName   string `json:"lastname"`
	FullName   string `json:"fullname"`
	Street     string `json:"street"`
	StreetLine string `json:"street_line2"`
	City       string `json:"city"`
	State      string `json:"state"`
	PostCode   string `json:"postcode"`
	Country    string `json:"country"`
}

type Category

type Category struct {
	Id    int    `json:"id"`
	Image string `json:"image"`

	Name        string `json:"name"`
	Description string `json:"description"`
}

type Customer

type Customer struct {
	Id        int    `json:"id"`
	Gender    string `json:"gender"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Dob       string `json:"dob"`
	Email     string `json:"email"`
	Password  string `json:"password"`

	Address Address `json:"address"`
}

type Key

type Key struct {
	Id    bson.ObjectId `json:"id" bson:"_id"`
	Name  string        `json:"name" bson:"name"`
	Value string        `json:"value" bson:"value"`
}

type Order

type Order struct {
	Id     int     `json:"id"`
	Amount float32 `json:"amount"`
	Remark string  `json:"remark"`

	CreatedTime time.Time `json:"createdTime"`
	UpdatedTime time.Time `json:"updatedTime"`

	OrderStatus OrderStatus `json:"status"`
	//Customer Customer `json:'customer'`
	Products []Product `json:"products"`

	ShippingAddress Address `json:'address'`
	BillingAddress  Address `json:'address'`
}

type OrderStatus

type OrderStatus struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type Product

type Product struct {
	Id       int     `json:"id"`
	Model    string  `json:"model"`
	Quantity int     `json:"quantity"`
	Image    string  `json:"image"`
	Price    float32 `json:"price"`

	Weight float32 `json:"weight"`

	Name        string `json:"name"`
	Description string `json:"description"`

	Category Category `json:"category"`
}

Jump to

Keyboard shortcuts

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