2023-06-13 04:15:06 +00:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"fusenapi/server/shopping-cart-confirmation/internal/svc"
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
|
server.AddRoutes(
|
|
|
|
[]rest.Route{
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/cart/add",
|
2023-06-13 04:15:06 +00:00
|
|
|
Handler: CartAddHandler(serverCtx),
|
|
|
|
},
|
2023-06-13 06:13:40 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/cart/del",
|
2023-06-13 06:13:40 +00:00
|
|
|
Handler: CartDeleteHandler(serverCtx),
|
|
|
|
},
|
2023-06-13 06:29:44 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/cart/num",
|
2023-06-13 06:29:44 +00:00
|
|
|
Handler: CartNumberHandler(serverCtx),
|
|
|
|
},
|
2023-06-13 09:47:48 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/cart/list",
|
2023-06-13 09:47:48 +00:00
|
|
|
Handler: CartListHandler(serverCtx),
|
|
|
|
},
|
2023-06-14 06:05:27 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/cart/order-detail",
|
2023-06-14 06:05:27 +00:00
|
|
|
Handler: CartOrderDetailHandler(serverCtx),
|
|
|
|
},
|
2023-06-14 09:59:48 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/cart/chang-order-method",
|
2023-06-14 09:59:48 +00:00
|
|
|
Handler: ChangeOrderMethodHandler(serverCtx),
|
|
|
|
},
|
2023-07-03 09:33:59 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/cart/create-order",
|
2023-07-03 09:33:59 +00:00
|
|
|
Handler: CreateOrderHandler(serverCtx),
|
|
|
|
},
|
2023-06-13 04:15:06 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|