handler

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WechatURL = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code"
	APPID     = ""
	SECRET    = ""
)

Variables

View Source
var (
	ErrNotAdmin = errors.New("non-administrators can not operate.")
)

Functions

func AddAddress

func AddAddress(c *server.Context) error

AddAddress adds address.

func AddCart

func AddCart(c *server.Context) error

Add adds wares to cart.

func AddCategory

func AddCategory(c *server.Context) error

Add adds a new category.

func AddColl

func AddColl(c *server.Context) error

AddColl adds wares into someone's collection.

func AddPanel

func AddPanel(c *server.Context) error

add promotion panel

func AddPhone

func AddPhone(c *server.Context) error

AddPhone wechat add a phone number

func AddPromotion

func AddPromotion(c *server.Context) error

add promotion list

func AddRecommend

func AddRecommend(c *server.Context) error

add recommend

func AddSecondHand

func AddSecondHand(c *server.Context)

TODO: add second-hand

func ChangeInfo

func ChangeInfo(c *server.Context) error

ChangeInfo change information

func ChangePassword

func ChangePassword(c *server.Context) error

ChangePassword change password

func ChangeStatus

func ChangeStatus(c *server.Context) error

change status of wares

func ConfirmOrder

func ConfirmOrder(c *server.Context) error

func CreateOrder

func CreateOrder(c *server.Context) error

func CreateWare

func CreateWare(c *server.Context) error

CreateWare add new ware

func Delete

func Delete(c *server.Context) error

Delete deletes the category.

func DeleteAddress

func DeleteAddress(c *server.Context) error

DeleteAddress deletes address by id.

func GetAddress

func GetAddress(c *server.Context) error

GetAddress gets address by userid.

func GetAllWare

func GetAllWare(c *server.Context) error

GetAllWare get all wares

func GetByUser

func GetByUser(c *server.Context) error

GetByUser gets carts by userid.

func GetByUserID

func GetByUserID(c *server.Context) error

GetByUserID gets collections by userID.

func GetDetail

func GetDetail(c *server.Context) error

get detail info of ware

func GetMainCategories

func GetMainCategories(c *server.Context) error

GetMainCategory gets all the parentid.

func GetNewWares

func GetNewWares(c *server.Context) error

GetNewWares get new wares

func GetPanelPage

func GetPanelPage(c *server.Context) error

get panel page

func GetPromotion

func GetPromotion(c *server.Context) error

GetPromotion get promotion wares

func GetSubCategories

func GetSubCategories(c *server.Context) error

GetSubCategory gets subcategory which parentid is pid.

func GetUserOrder

func GetUserOrder(c *server.Context) error

func GetWareByCategory

func GetWareByCategory(c *server.Context) error

GetWareByCategory get ware by categoryID

func HomePageList

func HomePageList(c *server.Context) error

get homepage list with last wareID

func ModifyAddress

func ModifyAddress(c *server.Context) error

ModifyAddress modify the address.

func ModifyCategory

func ModifyCategory(c *server.Context) error

ModifyCategory update the category's information.

func ModifyPrice

func ModifyPrice(c *server.Context) error

modify price by id

func PhoneLogin

func PhoneLogin(c *server.Context) error

PhoneLogin login by phone

func PhoneRegister

func PhoneRegister(c *server.Context) error

PhoneRegister register by phone

func RecommendList

func RecommendList(c *server.Context) error

get recommend list

func RemoveColl

func RemoveColl(c *server.Context) error

RemoveMany deletes collectios by ids.

func RemoveWhenOrder

func RemoveWhenOrder(c *server.Context) error

RemoveWhenOrder deletes wares by ids.

func SetDefaultAddress

func SetDefaultAddress(c *server.Context) error

SetDefaultAddress sets default address.

func UpdateWithID

func UpdateWithID(c *server.Context) error

UpdateWithID update ware info

func WechatLogin

func WechatLogin(c *server.Context) error

WechatLogin login by wechat

Types

This section is empty.

Jump to

Keyboard shortcuts

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