最新的api路径

This commit is contained in:
eson
2023-07-12 14:11:04 +08:00
parent 3c9fb417aa
commit 4dbb77b306
29 changed files with 221 additions and 162 deletions

View File

@@ -14,47 +14,47 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
[]rest.Route{
{
Method: http.MethodGet,
Path: "/product/list",
Path: "/api/product/list",
Handler: GetProductListHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/product/success-recommand",
Path: "/api/product/success-recommand",
Handler: GetSuccessRecommandHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/product/get-size-by-product",
Path: "/api/product/get-size-by-product",
Handler: GetSizeByProductHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/product/design",
Path: "/api/product/design",
Handler: GetProductDesignHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/product/design-gather",
Path: "/api/product/design-gather",
Handler: DesignGatherHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/product/info",
Path: "/api/product/info",
Handler: GetProductInfoHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/product/save-design",
Path: "/api/product/save-design",
Handler: SaveDesignHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/product/other-list",
Path: "/api/product/other-list",
Handler: OtherProductListHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/product/recommand",
Path: "/api/product/recommand",
Handler: GetRecommandProductListHandler(serverCtx),
},
},