78 lines
1.9 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-07-14 16:48:04 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_model_by_pid",
Handler: GetModelByPidHandler(serverCtx),
},
2023-07-14 19:25:52 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_price_by_pid",
Handler: GetPriceByPidHandler(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-17 11:28:59 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_size_by_pid",
Handler: GetSizeByPidHandler(serverCtx),
},
2023-07-17 14:40:24 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_template_by_pid",
Handler: GetTemplateByPidHandler(serverCtx),
},
2023-07-17 15:38:41 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_fitting_by_pid",
Handler: GetFittingByPidHandler(serverCtx),
},
2023-07-17 16:04:53 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_light_by_pid",
Handler: GetLightByPidHandler(serverCtx),
},
2023-07-17 17:08:45 +08:00
{
Method: http.MethodGet,
Path: "/api/product/get_render_setting_by_pid",
Handler: GetRenderSettingByPidHandler(serverCtx),
},
2023-07-20 17:35:13 +08:00
{
Method: http.MethodGet,
Path: "/api/product/recommand",
Handler: GetRecommandProductListHandler(serverCtx),
},
{
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-06-07 17:27:17 +08:00
},
)
2023-06-01 15:32:28 +08:00
}