fusenapi/server/product/internal/handler/routes.go

93 lines
2.2 KiB
Go
Raw Normal View History

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