update
This commit is contained in:
parent
0dc3cc97e0
commit
2031059ec2
|
@ -138,6 +138,13 @@ service product {
|
||||||
get: "/api/product/tag_product_list"
|
get: "/api/product/tag_product_list"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
//计算产品价格
|
||||||
|
rpc CalculateProductPrice(CalculateProductPriceReq) returns (CalculateProductPriceRsp) {
|
||||||
|
option (google.api.http) = {
|
||||||
|
post: "/api/product/calculate_product_price"
|
||||||
|
body: "*"
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserInfoRequest {
|
message UserInfoRequest {
|
||||||
|
@ -242,3 +249,21 @@ message GetProductListReq{
|
||||||
string template_tag = 3; //模板标签
|
string template_tag = 3; //模板标签
|
||||||
bool with_product = 4; //是否携带分类下的产品
|
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;//单价
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user