Documentation ¶
Index ¶
- func AddBook2Cart(w http.ResponseWriter, r *http.Request)
- func CheckUserName(w http.ResponseWriter, r *http.Request)
- func Checkout(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 GetMyOrders(w http.ResponseWriter, r *http.Request)
- func GetOrderInfo(w http.ResponseWriter, r *http.Request)
- func GetOrders(w http.ResponseWriter, r *http.Request)
- func GetPageBooks(w http.ResponseWriter, r *http.Request)
- func GetPageBooksByPrice(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 SendOrder(w http.ResponseWriter, r *http.Request)
- func TakeOrder(w http.ResponseWriter, r *http.Request)
- func ToUpdateBookPage(w http.ResponseWriter, r *http.Request)
- func UpdateCartItem(w http.ResponseWriter, r *http.Request)
- func UpdateOrAddBook(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserName ¶
func CheckUserName(w http.ResponseWriter, r *http.Request)
CheckUserName 通过发送Ajax验证用户名是否可用
func DeleteCartItem ¶
func DeleteCartItem(w http.ResponseWriter, r *http.Request)
DeleteCartItem 删除购物项
func GetCartInfo ¶
func GetCartInfo(w http.ResponseWriter, r *http.Request)
GetCartInfo 根据用户的id获取购物车信息
func GetOrderInfo ¶
func GetOrderInfo(w http.ResponseWriter, r *http.Request)
GetOrderInfo 获取订单对应的订单项
func GetPageBooksByPrice ¶
func GetPageBooksByPrice(w http.ResponseWriter, r *http.Request)
GetPageBooksByPrice 获取带分页和价格范围的图书
func ToUpdateBookPage ¶
func ToUpdateBookPage(w http.ResponseWriter, r *http.Request)
ToUpdateBookPage 去更新或者添加图书的页面
func UpdateCartItem ¶
func UpdateCartItem(w http.ResponseWriter, r *http.Request)
UpdateCartItem 更新购物项
func UpdateOrAddBook ¶
func UpdateOrAddBook(w http.ResponseWriter, r *http.Request)
UpdateOrAddBook 更新或添加图书
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.