add discount
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-05 03:54:59 +07:00
parent 5ecaa0f09b
commit 797bf40fdc
6 changed files with 112 additions and 84 deletions
+4 -2
View File
@@ -162,8 +162,9 @@ message CartItem {
int64 count = 10;
int64 amount = 11;
int64 amountOld = 12;
repeated Variant variants = 13;
repeated Label labels = 14;
int64 discount = 13;
repeated Variant variants = 14;
repeated Label labels = 15;
}
message CartReq {
@@ -174,6 +175,7 @@ message CartRsp {
repeated CartItem items = 1;
int64 amount = 2;
int64 amountOld = 3;
int64 discount = 4;
}
message GetImageReq {
+7 -2
View File
@@ -1,13 +1,16 @@
GET http://localhost:8090/catalog
User-Agent: crabs/1.0.0
###
GET http://localhost:8090/products/1
User-Agent: crabs/1.0.0
###
POST http://localhost:8090/cart
content-type: application/json
User-Agent: crabs/1.0.0
Content-Type: application/json
[
{
@@ -23,7 +26,8 @@ content-type: application/json
###
POST http://localhost:8090/orders
content-type: application/json
User-Agent: crabs/1.0.0
Content-Type: application/json
{
"name": "Иванов Иван",
@@ -43,3 +47,4 @@ content-type: application/json
###
GET http://localhost:8090/search?text=Лимон
User-Agent: crabs/1.0.0