add get card method
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-24 01:10:31 +07:00
parent 4bd82a34a1
commit 8fbeae6fc1
12 changed files with 685 additions and 137 deletions
+26
View File
@@ -36,6 +36,12 @@ service CRM {
body: "order"
};
}
rpc GetCard(CardReq) returns (CardRsp) {
option (google.api.http) = {
post: "/card"
body: "items"
};
}
}
message GetCatalogReq {}
@@ -127,3 +133,23 @@ message OrderItem {
int64 product_id = 1;
int64 count = 2;
}
message CardItem {
int64 id = 1;
string article = 2;
string name = 3;
string uri = 4;
repeated string images = 5;
string unit = 8;
double inventory = 9;
int64 count = 10;
int64 amount = 11;
}
message CardReq {
repeated OrderItem items = 1;
}
message CardRsp {
repeated CardItem items = 1;
}