controller

package
v0.0.0-...-58d82b6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBook2Cart

func AddBook2Cart(w http.ResponseWriter, r *http.Request)

AddBook2Cart 添加图书到购物车

func CheckUserName

func CheckUserName(w http.ResponseWriter, r *http.Request)

CheckUserName 通过发送Ajax验证用户名是否可用

func Checkout

func Checkout(w http.ResponseWriter, r *http.Request)

Checkout //去结账

func DeleteBook

func DeleteBook(w http.ResponseWriter, r *http.Request)

DeleteBook 删除图书

func DeleteCart

func DeleteCart(w http.ResponseWriter, r *http.Request)

DeleteCart 清空购物车

func DeleteCartItem

func DeleteCartItem(w http.ResponseWriter, r *http.Request)

DeleteCartItem 删除购物项

func GetCartInfo

func GetCartInfo(w http.ResponseWriter, r *http.Request)

GetCartInfo 根据用户的id获取购物车信息

func GetMyOrders

func GetMyOrders(w http.ResponseWriter, r *http.Request)

GetMyOrders 获取我的订单

func GetOrderInfo

func GetOrderInfo(w http.ResponseWriter, r *http.Request)

GetOrderInfo 获取订单对应的订单项

func GetOrders

func GetOrders(w http.ResponseWriter, r *http.Request)

GetOrders 获取所有订单

func GetPageBooks

func GetPageBooks(w http.ResponseWriter, r *http.Request)

GetPageBooks 获取带分页的图书

func GetPageBooksByPrice

func GetPageBooksByPrice(w http.ResponseWriter, r *http.Request)

GetPageBooksByPrice 获取带分页和价格范围的图书

func Login

func Login(w http.ResponseWriter, r *http.Request)

Login 处理用户登录的函数

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

Logout //处理用户注销的函数

func Regist

func Regist(w http.ResponseWriter, r *http.Request)

Regist 处理用户的函注册数

func SendOrder

func SendOrder(w http.ResponseWriter, r *http.Request)

SendOrder 发货

func TakeOrder

func TakeOrder(w http.ResponseWriter, r *http.Request)

TakeOrder 收货

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.

Jump to

Keyboard shortcuts

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