integration new apis

This commit is contained in:
sdarbinyan
2026-03-24 00:07:45 +04:00
parent b71e806bca
commit 50508b281c
5 changed files with 200 additions and 3 deletions

View File

@@ -98,6 +98,8 @@ export class MockDataService {
],
tags: ['new', 'featured', 'bestseller'],
badges: ['new', 'featured'],
colour: 'Natural Titanium',
size: '',
simpleDescription: 'Latest iPhone with titanium design and A17 Pro chip',
description: [
{ key: 'Color', value: 'Natural Titanium' },
@@ -105,6 +107,19 @@ export class MockDataService {
{ key: 'Display', value: '6.7 inch Super Retina XDR' },
{ key: 'Chip', value: 'A17 Pro' }
],
attributes: [
{ key: 'Color', value: 'Natural Titanium' },
{ key: 'Storage', value: '256GB' },
{ key: 'Chip', value: 'A17 Pro' }
],
names: [
{ language: 'ru', value: 'iPhone 15 Pro Max' },
{ language: 'en', value: 'iPhone 15 Pro Max' }
],
descriptions: [
{ language: 'ru', value: 'Новейший iPhone с титановым корпусом и чипом A17 Pro' },
{ language: 'en', value: 'Latest iPhone with titanium design and A17 Pro chip' }
],
subcategoryId: 'sub1',
comments: [
{
@@ -215,8 +230,13 @@ export class MockDataService {
currency: 'USD',
imgs: [`https://placehold.co/600x400?text=Product+${i}`],
tags: ['test'],
colour: '',
size: i % 2 === 0 ? 'M' : 'L',
simpleDescription: `This is test product number ${i}`,
description: [{ key: 'Size', value: 'Medium' }],
attributes: [{ key: 'Size', value: i % 2 === 0 ? 'M' : 'L' }],
names: [],
descriptions: [],
subcategoryId
});
}
@@ -434,8 +454,13 @@ export class MockDataService {
imgs: data.imgs || [],
tags: data.tags || [],
badges: data.badges || [],
colour: data.colour || '',
size: data.size || '',
simpleDescription: data.simpleDescription || '',
description: data.description || [],
attributes: data.attributes || [],
names: data.names || [],
descriptions: data.descriptions || [],
subcategoryId
};
this.items.push(newItem);