Update proto definitions

This commit is contained in:
2025-07-21 20:15:55 +03:00
parent ab5951229a
commit 86af72b134

View File

@@ -8,6 +8,7 @@ service ProductsService {
// Retrieves a list of products based on the provided request.
rpc GetListOfProducts(GetListOfProductsRequest) returns (stream GetListOfProductsResponse);
rpc GetProductPrice(GetProductPriceRequest) returns (stream GetProductPriceResponse);
rpc GetProductAttributes(GetProductAttributesRequest) returns (stream GetProductAttributesResponse);
}
message GetListOfProductsRequest{
@@ -26,6 +27,16 @@ message GetProductPriceResponse {
repeated ProductPrice product_prices = 1;
}
message GetProductAttributesRequest {
int64 marketplace_id = 1;
repeated int64 product_id = 2;
}
message GetProductAttributesResponse {
repeated ProductAttributes items = 1;
}
message Product {
int64 id = 1;
string offer_id = 2;
@@ -55,7 +66,6 @@ message Product {
}
}
message ProductPrice {
message Commissions {
@@ -78,3 +88,45 @@ message ProductPrice {
string offer_id = 4;
uint32 product_id = 7;
}
message ProductAttributes {
message Model_info {
uint32 model_id = 1;
uint32 count = 2;
}
message Values {
uint32 dictionary_value_id = 1;
string value = 2;
}
message Attributes {
uint32 id = 1;
uint32 complex_id = 2;
repeated Values values = 3;
}
message Result {
uint32 id = 1;
string barcode = 2;
repeated string barcodes = 3;
string name = 4;
string offer_id = 5;
uint32 type_id = 6;
uint32 height = 7;
uint32 depth = 8;
uint32 width = 9;
string dimension_unit = 10;
uint32 weight = 11;
string weight_unit = 12;
string primary_image = 13;
uint32 sku = 14;
Model_info model_info = 15;
repeated string images = 16;
repeated string pdf_list = 17;
repeated Attributes attributes = 18;
repeated uint32 attributes_with_defaults = 19;
string color_image = 21;
uint32 description_category_id = 22;
}
}