From 066595618a6260d5a1677d82515d38f5420b2379 Mon Sep 17 00:00:00 2001 From: "laodaming@fusen.cn" Date: Mon, 4 Dec 2023 18:20:02 +0800 Subject: [PATCH] fix --- service/fsservice.proto | 56 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/service/fsservice.proto b/service/fsservice.proto index 665df30..301e302 100644 --- a/service/fsservice.proto +++ b/service/fsservice.proto @@ -221,15 +221,65 @@ message ContactUsRequest { string message = 4; // 消息内容 } +//获取产品详情 message GetProductDetailReq{ int64 product_id = 1; string template_tag = 2; int64 selected_color_index = 3; string logo = 4; } -message GetProductDetailRsp{ - string msg = 1; - string name = 2; +message GetProductDetailRsp { + string logo = 1; //logo + TemplateTagColorInfo template_tag_color_info = 2; //标签颜色信息 + ProductInfo product_info = 3; //产品基本信息 + google.protobuf.Struct base_colors = 4; //一些返回写死的颜色 + repeated SizeInfo size_list = 5; //尺寸相关信息 } +message SizeInfo { + int64 id =1; //尺寸id + int64 is_default = 2; //是否默认显示 + google.protobuf.Struct title = 3; //尺寸标题信息 + string capacity = 4; //尺寸名称 + int64 parts_can_deleted = 5; //配件是否可删除 + int64 is_hot = 6; //是否热门 + string min_price = 7; //最低价 + google.protobuf.Struct template_info = 8; //模板相关信息 + ModelInfo model_info = 9; //模型相关信息 + repeated FittingInfo fitting_list = 10; //配件相关信息 +} +message FittingInfo { + int64 id = 1; //配件id + int64 is_hot = 2; //是否热门 + string material_image = 3;//配件材质图 + google.protobuf.Struct design_info = 4; //配件设计信息 + string price = 5; //配件价格 + string name = 6; //配件名 + int64 is_default = 7; //是否默认的配件 +} +message ModelInfo { + int64 id = 1; //模型id + google.protobuf.Struct design_info = 2; //模型设计信息 + LightInfo light_info = 3; //灯光信息 +} +message LightInfo { + int64 id = 1; //灯光id + google.protobuf.Struct light_design_info = 2; //灯光设计信息 +} +message ProductInfo { + int64 id = 1; //产品id + string description = 2; //产品描述 + int64 product_type = 3; //产品类型id + string product_type_name = 4;//产品类型名称 + string title = 5; //产品标题 + int64 is_env = 6; //是否环保 + int64 is_micro = 7; //是否可微波炉 + int64 is_customization = 8; //是否可定制产品 + google.protobuf.Struct website_unit = 9; //产品前台网站单位 +} +message TemplateTagColorInfo { + google.protobuf.Struct colors = 1; //传入logo对应的算法颜色组 + int64 selected_color_index = 2; //选择的模板标签的颜色索引值 + google.protobuf.Struct template_tag_groups = 3; //模板标签分组信息 +}