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

@ -60,6 +60,7 @@ type AllModelsGen struct {
FsProductModel3dLight *FsProductModel3dLightModel // fs_product_model3d_light 模型-灯光组表
FsProductOption *FsProductOptionModel // fs_product_option 产品选项表(已废弃)
FsProductPrice *FsProductPriceModel // fs_product_price 阶梯价格表
FsProductRecommend *FsProductRecommendModel // fs_product_recommend 推荐商品表
FsProductRenderDesign *FsProductRenderDesignModel // fs_product_render_design
FsProductScene *FsProductSceneModel // fs_product_scene 产品场景表
FsProductSize *FsProductSizeModel // fs_product_size 产品尺寸表
@ -149,6 +150,7 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
FsProductModel3dLight: NewFsProductModel3dLightModel(gdb),
FsProductOption: NewFsProductOptionModel(gdb),
FsProductPrice: NewFsProductPriceModel(gdb),
FsProductRecommend: NewFsProductRecommendModel(gdb),
FsProductRenderDesign: NewFsProductRenderDesignModel(gdb),
FsProductScene: NewFsProductSceneModel(gdb),
FsProductSize: NewFsProductSizeModel(gdb),

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 {
}

View File

@ -69,6 +69,9 @@ service product {
@handler GetLastProductDesignHandler
get /api/product/get_last_product_design(request) returns (response);
//*********************产品详情分解接口结束***********************
//*********************推荐产品接口开始××××××××××××××××××××××××××
//*********************推荐产品接口结束××××××××××××××××××××××××××
}
//获取产品列表
@ -412,4 +415,4 @@ type GetLastProductDesignRsp {
SizeId int64 `json:"size_id"`
LogoColor interface{} `json:"logo_color"`
Info interface{} `json:"info"`
}
}