This commit is contained in:
laodaming
2023-11-22 15:36:58 +08:00
parent 79faa6a377
commit a8d1f8e831
5 changed files with 195 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ service product {
//获取产品详情
@handler GetProductDetailHandler
get /api/product/get_product_detail(GetProductDetailReq) returns (response);
//根据产品获取模型配件列表
@handler GetProductModelsHandler
get /api/product/get_product_models(GetProductModelsReq) returns (response);
}
//获取详情页推荐产品列表
@@ -185,4 +188,19 @@ type TemplateTagColorInfo {
Colors [][]string `json:"colors"` //传入logo对应的算法颜色组
SelectedColorIndex int `json:"selected_color_index"` //选择的模板标签的颜色索引值
TemplateTagGroups interface{} `json:"template_tag_groups"` //模板标签分组信息
}
//根据产品获取模型配件列表
type GetProductModelsReq {
ProductIds string `form:"product_ids"`
}
type ProductItem {
ModelList []ModelItem `json:"model_list"`
}
type ModelItem {
Id int64 `json:"id"`
Type int64 `json:"type"` //1模型 2配件 3场景
Title string `json:"title"`
Name string `json:"name"`
DesignInfo interface{} `json:"design_info"`
LightInfo interface{} `json:"light_info"`
}