From 86af72b134df80784f0f01e8df59ba02923bc75c Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 21 Jul 2025 20:15:55 +0300 Subject: [PATCH] Update proto definitions --- ozon/products.proto | 54 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/ozon/products.proto b/ozon/products.proto index ebc168b..fbfd078 100644 --- a/ozon/products.proto +++ b/ozon/products.proto @@ -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 { @@ -77,4 +87,46 @@ message ProductPrice { Commissions commissions = 2; 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; + } } \ No newline at end of file