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