@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user