products

package
v0.0.0-...-2912f65 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProductName

func FindProductName(id string) string

func FindProductNames

func FindProductNames(id string) (string, string)

func Register

func Register()

Types

type Comment

type Comment struct {
	Id         int64
	User       int64
	Content    string
	CreateTime time.Time
}

type Product

type Product struct {
	Id            int64
	NavName       string
	Status        int64 //0: not for sale, 1: for sale, 2: on sale
	EnName        string
	CnName        string
	CoverPhoto    string
	Introduction  string
	Spec          string
	Price         float64
	Discount      float64
	Photos        []string
	Comments      []Comment
	UserLiked     []int64
	UserFavorited []int64
	CountShared   []int64 //0:fb 1:twitter 2:weibo 3:wechat
	SaleURL       []string
}

type SearchCount

type SearchCount struct {
	Total     int64
	PageLimit int
}

Jump to

Keyboard shortcuts

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