fusenapi/server/product/internal/handler/routes.go
laodaming a8d1f8e831 fix
2023-11-22 15:36:58 +08:00

53 lines
1.2 KiB
Go

// Code generated by goctl. DO NOT EDIT.
package handler
import (
"net/http"
"fusenapi/server/product/internal/svc"
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Path: "/api/product/tag_product_list",
Handler: GetTagProductListHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/api/product/get_product_step_price",
Handler: GetProductStepPriceHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/api/product/calculate_product_price",
Handler: CalculateProductPriceHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/api/product/recommend",
Handler: GetRecommendProductListHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/api/product/home_page_recommend",
Handler: HomePageRecommendProductListHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/api/product/get_product_detail",
Handler: GetProductDetailHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/api/product/get_product_models",
Handler: GetProductModelsHandler(serverCtx),
},
},
)
}