package
Version:
v0.0.0-...-d57e063
Opens a new window with list of versions in this module.
Published: Mar 25, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
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 struct {
Id int `json:"id"`
Image string `json:"image"`
Name string `json:"name"`
Description string `json:"description"`
}
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 struct {
Id bson.ObjectId `json:"id" bson:"_id"`
Name string `json:"name" bson:"name"`
Value string `json:"value" bson:"value"`
}
type Order struct {
Id int `json:"id"`
Amount float32 `json:"amount"`
CreatedTime time.Time `json:"createdTime"`
UpdatedTime time.Time `json:"updatedTime"`
OrderStatus OrderStatus `json:"status"`
Products []Product `json:"products"`
ShippingAddress Address `json:'address'`
BillingAddress Address `json:'address'`
}
type OrderStatus struct {
Id int `json:"id"`
Name string `json:"name"`
}
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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.