add products
This commit is contained in:
@@ -17,6 +17,11 @@ service CRM {
|
||||
get: "/positions/{id}"
|
||||
};
|
||||
}
|
||||
rpc GetProduct(GetProductReq) returns (ProductRsp) {
|
||||
option (google.api.http) = {
|
||||
get: "/products/{id}"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message GetCatalogReq {}
|
||||
@@ -75,3 +80,11 @@ message Characteristic {
|
||||
string name = 1;
|
||||
string value = 2;
|
||||
}
|
||||
|
||||
message GetProductReq{
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message ProductRsp {
|
||||
Product product = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user