From 3c37a46f50cc5d30f629839833ea720579248761 Mon Sep 17 00:00:00 2001 From: "laodaming@fusen.cn" Date: Fri, 12 Jan 2024 10:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B9=8B=E5=89=8D=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=9A=84=E4=BA=A7=E5=93=81=E7=9B=B8=E5=85=B3=E4=BB=A3?= =?UTF-8?q?=E7=A0=81]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/fsservice.proto | 55 ----------------------------------------- 1 file changed, 55 deletions(-) diff --git a/service/fsservice.proto b/service/fsservice.proto index 3ea6f68..c2e19e1 100644 --- a/service/fsservice.proto +++ b/service/fsservice.proto @@ -124,28 +124,6 @@ service info { } -//定义产品服务 -service product { - // 产品详情 - rpc GetProductDetail(GetProductDetailReq) returns (basic.Response) { - option (google.api.http) = { - get: "/api/product/get_product_detail" - }; - } - //获取产品列表 - rpc GetProductList(GetProductListReq) returns (basic.Response) { - option (google.api.http) = { - get: "/api/product/tag_product_list" - }; - } - //计算产品价格 - rpc CalculateProductPrice(CalculateProductPriceReq) returns (CalculateProductPriceRsp) { - option (google.api.http) = { - post: "/api/product/calculate_product_price" - body: "*" - }; - } -} message UserInfoRequest { repeated string module = 1; // 模块 @@ -233,37 +211,4 @@ message ContactUsRequest { string email = 2; // 电子邮件 string phone = 3; // 电话号码 string message = 4; // 消息内容 -} - -//获取产品详情 -message GetProductDetailReq{ - int64 product_id = 1; - string template_tag = 2; - int64 selected_color_index = 3; - string logo = 4; -} -//获取产品列表 -message GetProductListReq{ - int64 basic_tag_id = 1; //传入则以该分类为最高层分类查询 - int64 merchant_type = 2; //商户类型 - string template_tag = 3; //模板标签 - bool with_product = 4; //是否携带分类下的产品 -} -//计算产品价格 -message CalculateProductPriceReq{ - int64 product_id = 1; - int64 size_id = 2; - int64 fitting_id = 3; - int64 purchase_quantity = 4; -} -message CalculateProductPriceRsp{ - string item_price = 1; - string total_price = 2; - StepRange step_range = 3; -} -message StepRange{ - int64 start = 1;//起点 - int64 end = 2;//终点 - string range_description = 3;//描述 - string item_price = 4;//单价 } \ No newline at end of file