From 6d62cd6bfed6cbc304c5f07c0e3e2d3d0356622f Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 22 Jul 2025 21:37:23 +0300 Subject: [PATCH] Update proto definitions --- ozon/products.proto | 61 ++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 20 deletions(-) diff --git a/ozon/products.proto b/ozon/products.proto index a7667a8..0c3597d 100644 --- a/ozon/products.proto +++ b/ozon/products.proto @@ -37,6 +37,26 @@ message GetProductAttributesResponse { } +message DeleteProductsRequest { + message Item { + int64 product_id = 1; + string offer_id = 2; + } + + repeated Item items = 1; +} + +message DeleteProductsResponse { + + message Item { + int64 product_id = 1; + string offer_id = 2; + bool is_deleted = 3; + } + + repeated Item items = 1; +} + message Product { int64 id = 1; string offer_id = 2; @@ -106,23 +126,24 @@ message ProductAttributes { repeated Values values = 3; } - int64 id = 1; - string barcode = 2; - string name = 4; - string offer_id = 5; - int64 type_id = 6; - int64 height = 7; - int64 depth = 8; - int64 width = 9; - string dimension_unit = 10; - int64 weight = 11; - string weight_unit = 12; - string primary_image = 13; - Model_info model_info = 15; - repeated string images = 16; - repeated string pdf_list = 17; - repeated Attributes attributes = 18; - repeated int64 attributes_with_defaults = 19; - string color_image = 21; - int64 description_category_id = 22; -} \ No newline at end of file + int64 id = 1; + string barcode = 2; + string name = 4; + string offer_id = 5; + int64 type_id = 6; + int64 height = 7; + int64 depth = 8; + int64 width = 9; + string dimension_unit = 10; + int64 weight = 11; + string weight_unit = 12; + string primary_image = 13; + Model_info model_info = 15; + repeated string images = 16; + repeated string pdf_list = 17; + repeated Attributes attributes = 18; + repeated int64 attributes_with_defaults = 19; + string color_image = 21; + int64 description_category_id = 22; +} +