fix
This commit is contained in:
@@ -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),
|
||||
},
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user