53 lines
1.1 KiB
Go
Raw Normal View History

2023-06-13 12:15:06 +08: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 14:11:04 +08:00
Path: "/api/cart/add",
2023-06-13 12:15:06 +08:00
Handler: CartAddHandler(serverCtx),
},
2023-06-13 14:13:40 +08:00
{
Method: http.MethodPost,
2023-07-12 14:11:04 +08:00
Path: "/api/cart/del",
2023-06-13 14:13:40 +08:00
Handler: CartDeleteHandler(serverCtx),
},
2023-06-13 14:29:44 +08:00
{
Method: http.MethodGet,
2023-07-12 14:11:04 +08:00
Path: "/api/cart/num",
2023-06-13 14:29:44 +08:00
Handler: CartNumberHandler(serverCtx),
},
2023-06-13 17:47:48 +08:00
{
Method: http.MethodGet,
2023-07-12 14:11:04 +08:00
Path: "/api/cart/list",
2023-06-13 17:47:48 +08:00
Handler: CartListHandler(serverCtx),
},
2023-06-14 14:05:27 +08:00
{
Method: http.MethodGet,
2023-07-12 14:11:04 +08:00
Path: "/api/cart/order-detail",
2023-06-14 14:05:27 +08:00
Handler: CartOrderDetailHandler(serverCtx),
},
2023-06-14 17:59:48 +08:00
{
Method: http.MethodPost,
2023-07-12 14:11:04 +08:00
Path: "/api/cart/chang-order-method",
2023-06-14 17:59:48 +08:00
Handler: ChangeOrderMethodHandler(serverCtx),
},
2023-07-03 17:33:59 +08:00
{
Method: http.MethodPost,
2023-07-12 14:11:04 +08:00
Path: "/api/cart/create-order",
2023-07-03 17:33:59 +08:00
Handler: CreateOrderHandler(serverCtx),
},
2023-06-13 12:15:06 +08:00
},
)
}