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-07-14 08:48:04 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/product/get_model_by_pid",
|
|
|
|
Handler: GetModelByPidHandler(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-17 03:28:59 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/product/get_size_by_pid",
|
|
|
|
Handler: GetSizeByPidHandler(serverCtx),
|
|
|
|
},
|
2023-07-17 06:40:24 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/product/get_template_by_pid",
|
|
|
|
Handler: GetTemplateByPidHandler(serverCtx),
|
|
|
|
},
|
2023-07-17 07:38:41 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/product/get_fitting_by_pid",
|
|
|
|
Handler: GetFittingByPidHandler(serverCtx),
|
|
|
|
},
|
2023-07-17 08:04:53 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/product/get_light_by_pid",
|
|
|
|
Handler: GetLightByPidHandler(serverCtx),
|
|
|
|
},
|
2023-07-17 09:08:45 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/product/get_render_setting_by_pid",
|
|
|
|
Handler: GetRenderSettingByPidHandler(serverCtx),
|
|
|
|
},
|
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-06-07 09:27:17 +00:00
|
|
|
},
|
|
|
|
)
|
2023-06-01 07:32:28 +00:00
|
|
|
}
|