Documentation
¶
Index ¶
- func AddBook2Cart(w http.ResponseWriter, r *http.Request)
- func DeleteBook(w http.ResponseWriter, r *http.Request)
- func DeleteCart(w http.ResponseWriter, r *http.Request)
- func DeleteCartItem(w http.ResponseWriter, r *http.Request)
- func GetCartInfo(w http.ResponseWriter, r *http.Request)
- func GetPageBooks(w http.ResponseWriter, r *http.Request)
- func GetPagesByPrice(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func Regist(w http.ResponseWriter, r *http.Request)
- func UpdateCartItem(w http.ResponseWriter, r *http.Request)
- func UpdateOrAddBook(w http.ResponseWriter, r *http.Request)
- func UpdateOrAddBookPage(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBook2Cart ¶
func AddBook2Cart(w http.ResponseWriter, r *http.Request)
AddBook2Cart 把图书添加到购物车中
func DeleteCartItem ¶
func DeleteCartItem(w http.ResponseWriter, r *http.Request)
DeleteCartItem 删除购物项
func GetPagesByPrice ¶
func GetPagesByPrice(w http.ResponseWriter, r *http.Request)
GetPagesByPrice 根据价格得到商品的信息
func UpdateCartItem ¶
func UpdateCartItem(w http.ResponseWriter, r *http.Request)
UpdateCartItem 更新购物项的信息(改变图书的数量)
func UpdateOrAddBook ¶
func UpdateOrAddBook(w http.ResponseWriter, r *http.Request)
UpdateOrAddBook 添加或更新书本信息
func UpdateOrAddBookPage ¶
func UpdateOrAddBookPage(w http.ResponseWriter, r *http.Request)
UpdateOrAddBookPage 转到添加或更新书本信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.