This commit is contained in:
diPhantxm
2025-03-02 15:35:05 +03:00
parent f5d2d0197b
commit dcf366d7d4
2 changed files with 37 additions and 31 deletions

View File

@@ -1564,6 +1564,9 @@ type GetDescriptionOfProductResult struct {
// Barcode // Barcode
Barcode string `json:"barcode"` Barcode string `json:"barcode"`
// All product's barcodes
Barcodes []string `json:"barcodes"`
// Category identifier // Category identifier
DescriptionCategoryId int64 `json:"description_category_id"` DescriptionCategoryId int64 `json:"description_category_id"`
@@ -1603,6 +1606,12 @@ type GetDescriptionOfProductResult struct {
// Array of PDF files // Array of PDF files
PDFList []GetDescriptionOfProductResultPDF `json:"pdf_list"` PDFList []GetDescriptionOfProductResultPDF `json:"pdf_list"`
// Link to the main product image
PrimaryImage string `json:"primary_image"`
// Product identifier in the Ozon system, SKU
SKU int64 `json:"sku"`
// Product type identifier // Product type identifier
TypeId int64 `json:"type_id"` TypeId int64 `json:"type_id"`

View File

@@ -1370,37 +1370,33 @@ func TestGetDescriptionOfProduct(t *testing.T) {
{ {
"id": 213761435, "id": 213761435,
"barcode": "", "barcode": "",
"description_category_id": 17038062, "barcodes": [
"123124123",
"123342455"
],
"name": "Пленка защитная для Xiaomi Redmi Note 10 Pro 5G", "name": "Пленка защитная для Xiaomi Redmi Note 10 Pro 5G",
"offer_id": "21470", "offer_id": "21470",
"type_id": 124572394,
"height": 10, "height": 10,
"depth": 210, "depth": 210,
"width": 140, "width": 140,
"dimension_unit": "mm", "dimension_unit": "mm",
"weight": 50, "weight": 50,
"weight_unit": "g", "weight_unit": "g",
"primary_image": "https://cdn1.ozone.ru/s3/multimedia-4/6804736960.jpg",
"sku": 423434534,
"model_info": {
"model_id": 43445453,
"count": 4
},
"images": [ "images": [
{ "https://cdn1.ozone.ru/s3/multimedia-4/6804736960.jpg",
"file_name": "https://cdn1.ozone.ru/s3/multimedia-f/6190456071.jpg", "https://cdn1.ozone.ru/s3/multimedia-j/6835412647.jpg"
"default": true,
"index": 0
},
{
"file_name": "https://cdn1.ozone.ru/s3/multimedia-7/6190456099.jpg",
"default": false,
"index": 1
},
{
"file_name": "https://cdn1.ozone.ru/s3/multimedia-9/6190456065.jpg",
"default": false,
"index": 2
}
], ],
"images360": [],
"pdf_list": [], "pdf_list": [],
"attributes": [ "attributes": [
{ {
"attribute_id": 5219, "id": 5219,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1410,7 +1406,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 11051, "id": 11051,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1420,7 +1416,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 10100, "id": 10100,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1430,7 +1426,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 11794, "id": 11794,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1440,7 +1436,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 9048, "id": 9048,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1450,7 +1446,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 5076, "id": 5076,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1460,7 +1456,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 9024, "id": 9024,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1470,7 +1466,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 10015, "id": 10015,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1480,7 +1476,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 85, "id": 85,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1490,7 +1486,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 9461, "id": 9461,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1500,7 +1496,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 4180, "id": 4180,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1510,7 +1506,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 4191, "id": 4191,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1520,7 +1516,7 @@ func TestGetDescriptionOfProduct(t *testing.T) {
] ]
}, },
{ {
"attribute_id": 8229, "id": 8229,
"complex_id": 0, "complex_id": 0,
"values": [ "values": [
{ {
@@ -1531,7 +1527,8 @@ func TestGetDescriptionOfProduct(t *testing.T) {
} }
], ],
"complex_attributes": [], "complex_attributes": [],
"color_image": "" "color_image": "",
"description_category_id": 71107562
} }
], ],
"total": 1, "total": 1,