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{
|
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 14:11:04 +08:00
|
|
|
Path: "/api/product/list",
|
2023-06-01 15:32:28 +08:00
|
|
|
Handler: GetProductListHandler(serverCtx),
|
|
|
|
},
|
2023-06-06 15:30:12 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 14:11:04 +08:00
|
|
|
Path: "/api/product/success-recommand",
|
2023-06-06 15:30:12 +08:00
|
|
|
Handler: GetSuccessRecommandHandler(serverCtx),
|
|
|
|
},
|
2023-06-07 17:27:17 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 14:11:04 +08:00
|
|
|
Path: "/api/product/get-size-by-product",
|
2023-06-07 17:27:17 +08:00
|
|
|
Handler: GetSizeByProductHandler(serverCtx),
|
|
|
|
},
|
2023-06-19 10:34:21 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 14:11:04 +08:00
|
|
|
Path: "/api/product/design",
|
2023-06-19 10:34:21 +08:00
|
|
|
Handler: GetProductDesignHandler(serverCtx),
|
|
|
|
},
|
2023-06-30 17:20:11 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 14:11:04 +08:00
|
|
|
Path: "/api/product/design-gather",
|
2023-06-30 17:20:11 +08:00
|
|
|
Handler: DesignGatherHandler(serverCtx),
|
|
|
|
},
|
2023-07-04 16:48:56 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 14:11:04 +08:00
|
|
|
Path: "/api/product/info",
|
2023-07-04 16:48:56 +08:00
|
|
|
Handler: GetProductInfoHandler(serverCtx),
|
|
|
|
},
|
2023-07-05 16:03:16 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 14:11:04 +08:00
|
|
|
Path: "/api/product/save-design",
|
2023-07-05 16:03:16 +08:00
|
|
|
Handler: SaveDesignHandler(serverCtx),
|
|
|
|
},
|
2023-07-10 19:42:55 +08:00
|
|
|
{
|
2023-07-11 11:36:01 +08:00
|
|
|
Method: http.MethodGet,
|
2023-07-12 14:11:04 +08:00
|
|
|
Path: "/api/product/other-list",
|
2023-07-10 19:42:55 +08:00
|
|
|
Handler: OtherProductListHandler(serverCtx),
|
|
|
|
},
|
2023-07-13 19:05:13 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/product/tag_product_list",
|
|
|
|
Handler: GetTagProductListHandler(serverCtx),
|
|
|
|
},
|
2023-07-14 15:57:27 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/product/render_design",
|
|
|
|
Handler: GetRenderDesignHandler(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-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-17 19:39:35 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-19 10:48:52 +08:00
|
|
|
Path: "/api/product/get_last_product_design",
|
|
|
|
Handler: GetLastProductDesignHandler(serverCtx),
|
2023-07-17 19:39:35 +08:00
|
|
|
},
|
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
|
|
|
}
|