This commit is contained in:
laodaming
2023-07-20 12:27:07 +08:00
parent fd93688d27
commit 4a2230d90c
4 changed files with 21 additions and 1 deletions

View File

@@ -107,6 +107,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/api/product/get_last_product_design",
Handler: GetLastProductDesignHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/api/product/save_recommend_product",
Handler: SaveRecommendProductHandler(serverCtx),
},
},
)
}

View File

@@ -376,6 +376,16 @@ type GetLastProductDesignRsp struct {
Info interface{} `json:"info"`
}
type SaveRecommendProductReq struct {
ProductList []RecommendProductItem `json:"product_list"`
}
type RecommendProductItem struct {
ProductId int64 `json:"product_id"`
Sort int64 `json:"sort"`
Status int64 `json:"status,options=0|1"`
}
type Request struct {
}