48 lines
1.1 KiB
Go
Raw Normal View History

2023-06-01 15:32:28 +08:00
// Code generated by goctl. DO NOT EDIT.
package handler
import (
"net/http"
2023-06-08 11:03:20 +08:00
"fusenapi/server/product/internal/svc"
2023-06-01 15:32:28 +08:00
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
2023-07-13 19:05:13 +08:00
{
Method: http.MethodGet,
Path: "/api/product/tag_product_list",
Handler: GetTagProductListHandler(serverCtx),
},
2023-09-26 10:54:11 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_product_step_price",
Handler: GetProductStepPriceHandler(serverCtx),
},
2023-09-26 11:10:41 +08:00
{
Method: http.MethodPost,
2023-09-26 11:40:27 +08:00
Path: "/api/product/calculate_product_price",
Handler: CalculateProductPriceHandler(serverCtx),
2023-09-26 11:10:41 +08:00
},
2023-07-20 17:35:13 +08:00
{
Method: http.MethodGet,
2023-10-20 11:47:46 +08:00
Path: "/api/product/recommend",
2023-10-20 11:46:51 +08:00
Handler: GetRecommendProductListHandler(serverCtx),
2023-07-20 17:35:13 +08:00
},
{
Method: http.MethodGet,
2023-07-20 17:47:28 +08:00
Path: "/api/product/home_page_recommend",
Handler: HomePageRecommendProductListHandler(serverCtx),
2023-07-20 17:35:13 +08:00
},
2023-10-17 15:33:46 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_product_detail",
Handler: GetProductDetailHandler(serverCtx),
},
2023-06-07 17:27:17 +08:00
},
)
2023-06-01 15:32:28 +08:00
}