This commit is contained in:
Phuoc Nguyen
2025-10-24 15:09:51 +07:00
parent 338d26a38a
commit c225144ad3
11 changed files with 1805 additions and 173 deletions

View File

@@ -72,154 +72,112 @@ class ProductsLocalDataSourceImpl implements ProductsLocalDataSource {
/// Mock products data
static final List<Map<String, dynamic>> _productsJson = [
{
'id': 'prod_001',
'name': 'Gạch men cao cấp 60x60',
'sku': 'GM-60-001',
'product_id': 'prod_001',
'name': 'Gạch Cát Tường 1200x1200',
'description': 'Gạch men bóng kiếng cao cấp, chống trượt, độ bền cao. Phù hợp cho phòng khách, phòng ngủ.',
'price': 450000.0,
'base_price': 450000.0,
'unit': '',
'imageUrl': 'https://images.unsplash.com/photo-1615971677499-5467cbfe1f10?w=400',
'categoryId': 'floor_tiles',
'inStock': true,
'stockQuantity': 150,
'createdAt': '2024-01-15T08:00:00Z',
'salePrice': null,
'images': ['https://www.eurotile.vn/pictures/catalog/product/0-gachkholon/cat-tuong/CAT-S01G-1.jpg'],
'image_captions': {},
'link_360': 'https://design.eurotile.vn/pub/tool/panorama/show?obsPlanId=3FO3H1VE59R5&locale=en_US',
'specifications': {},
'category': 'floor_tiles',
'brand': 'Eurotile',
'is_active': true,
'is_featured': false,
'erpnext_item_code': null,
'created_at': '2024-01-15T08:00:00Z',
'updated_at': null,
},
{
'id': 'prod_002',
'product_id': 'prod_002',
'name': 'Gạch granite nhập khẩu',
'sku': 'GR-80-002',
'description': 'Gạch granite nhập khẩu Tây Ban Nha, vân đá tự nhiên, sang trọng. Kích thước 80x80cm.',
'price': 680000.0,
'base_price': 680000.0,
'unit': '',
'imageUrl': 'https://images.unsplash.com/photo-1565183928294-7d22e855a326?w=400',
'categoryId': 'floor_tiles',
'inStock': true,
'stockQuantity': 80,
'createdAt': '2024-01-20T10:30:00Z',
'salePrice': 620000.0,
'images': ['https://images.unsplash.com/photo-1565193566173-7a0ee3dbe261?w=300&h=300&fit=crop'],
'image_captions': {},
'link_360': 'https://design.eurotile.vn/pub/tool/panorama/show?obsPlanId=3FO3H1VE59R&locale=en_US',
'specifications': {},
'category': 'floor_tiles',
'brand': 'Vasta Stone',
'is_active': true,
'is_featured': false,
'erpnext_item_code': null,
'created_at': '2024-01-20T10:30:00Z',
'updated_at': null,
},
{
'id': 'prod_003',
'product_id': 'prod_003',
'name': 'Gạch mosaic trang trí',
'sku': 'MS-30-003',
'description': 'Gạch mosaic thủy tinh màu sắc đa dạng, tạo điểm nhấn cho không gian. Kích thước 30x30cm.',
'price': 320000.0,
'base_price': 320000.0,
'unit': '',
'imageUrl': 'https://images.unsplash.com/photo-1604709177225-055f99402ea3?w=400',
'categoryId': 'decorative_tiles',
'inStock': true,
'stockQuantity': 45,
'createdAt': '2024-02-01T14:15:00Z',
'salePrice': null,
'images': ['https://images.unsplash.com/photo-1615971677499-5467cbab01c0?w=300&h=300&fit=crop'],
'image_captions': {},
'link_360': 'https://design.eurotile.vn/pub/tool/panorama/show?obsPlanId=3FO3H1VE59R5&locale=en_US',
'specifications': {},
'category': 'decorative_tiles',
'brand': 'Eurotile',
'is_active': true,
'is_featured': false,
'erpnext_item_code': null,
'created_at': '2024-02-01T14:15:00Z',
'updated_at': null,
},
{
'id': 'prod_004',
'product_id': 'prod_004',
'name': 'Gạch 3D họa tiết',
'sku': '3D-60-004',
'description': 'Gạch 3D với họa tiết nổi độc đáo, tạo hiệu ứng thị giác ấn tượng cho tường phòng khách.',
'price': 750000.0,
'base_price': 750000.0,
'unit': '',
'imageUrl': 'https://images.unsplash.com/photo-1600585152220-90363fe7e115?w=400',
'categoryId': 'wall_tiles',
'inStock': true,
'stockQuantity': 30,
'createdAt': '2024-02-10T09:00:00Z',
'salePrice': 680000.0,
'images': ['https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?w=300&h=300&fit=crop'],
'image_captions': {},
'link_360': 'https://design.eurotile.vn/pub/tool/panorama/show?obsPlanId=3FO3H1VE59R5&locale=en_US',
'specifications': {},
'category': 'wall_tiles',
'brand': 'Vasta Stone',
'is_active': true,
'is_featured': false,
'erpnext_item_code': null,
'created_at': '2024-02-10T09:00:00Z',
'updated_at': null,
},
{
'id': 'prod_005',
'product_id': 'prod_005',
'name': 'Gạch ceramic chống trượt',
'sku': 'CR-40-005',
'description': 'Gạch ceramic chống trượt cấp độ R11, an toàn cho phòng tắm và ban công. Kích thước 40x40cm.',
'price': 380000.0,
'base_price': 380000.0,
'unit': '',
'imageUrl': 'https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=400',
'categoryId': 'outdoor_tiles',
'inStock': true,
'stockQuantity': 8,
'createdAt': '2024-02-15T11:20:00Z',
'salePrice': null,
'images': ['https://images.unsplash.com/photo-1615874694520-474822394e73?w=300&h=300&fit=crop'],
'image_captions': {},
'link_360': 'https://design.eurotile.vn/pub/tool/panorama/show?obsPlanId=3FO3H1VE59R5&locale=en_US',
'specifications': {},
'category': 'outdoor_tiles',
'brand': 'Eurotile',
'is_active': true,
'is_featured': false,
'erpnext_item_code': null,
'created_at': '2024-02-15T11:20:00Z',
'updated_at': null,
},
{
'id': 'prod_006',
'product_id': 'prod_006',
'name': 'Gạch terrazzo đá mài',
'sku': 'TZ-60-006',
'description': 'Gạch terrazzo phong cách retro, đá mài hạt màu, độc đáo và bền đẹp theo thời gian.',
'price': 890000.0,
'base_price': 890000.0,
'unit': '',
'imageUrl': 'https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?w=400',
'categoryId': 'decorative_tiles',
'inStock': true,
'stockQuantity': 25,
'createdAt': '2024-02-20T15:45:00Z',
'salePrice': 820000.0,
'brand': 'Vasta Stone',
},
{
'id': 'prod_007',
'name': 'Gạch ốp tường bếp',
'sku': 'OT-30-007',
'description': 'Gạch ốp tường nhà bếp, dễ lau chùi, chống thấm tốt. Kích thước 30x60cm.',
'price': 280000.0,
'unit': '',
'imageUrl': 'https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?w=400',
'categoryId': 'wall_tiles',
'inStock': true,
'stockQuantity': 120,
'createdAt': '2024-03-01T08:30:00Z',
'salePrice': null,
'brand': 'Eurotile',
},
{
'id': 'prod_008',
'name': 'Gạch sân vườn chống rêu',
'sku': 'SV-50-008',
'description': 'Gạch lát sân vườn chống rêu mốc, bền với thời tiết. Kích thước 50x50cm.',
'price': 420000.0,
'unit': '',
'imageUrl': 'https://images.unsplash.com/photo-1600566752355-35792bedcfea?w=400',
'categoryId': 'outdoor_tiles',
'inStock': true,
'stockQuantity': 65,
'createdAt': '2024-03-05T10:00:00Z',
'salePrice': 380000.0,
'brand': 'Vasta Stone',
},
{
'id': 'prod_009',
'name': 'Keo dán gạch chuyên dụng',
'sku': 'ACC-KD-009',
'description': 'Keo dán gạch chất lượng cao, độ bám dính mạnh, chống thấm. Bao 25kg.',
'price': 180000.0,
'unit': 'bao',
'imageUrl': 'https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=400',
'categoryId': 'accessories',
'inStock': true,
'stockQuantity': 200,
'createdAt': '2024-03-10T13:15:00Z',
'salePrice': null,
'brand': 'Eurotile',
},
{
'id': 'prod_010',
'name': 'Keo chà ron màu',
'sku': 'ACC-KCR-010',
'description': 'Keo chà ron gạch nhiều màu sắc, chống thấm, chống nấm mốc. Bao 5kg.',
'price': 120000.0,
'unit': 'bao',
'imageUrl': 'https://images.unsplash.com/photo-1621905251918-48416bd8575a?w=400',
'categoryId': 'accessories',
'inStock': true,
'stockQuantity': 150,
'createdAt': '2024-03-15T09:45:00Z',
'salePrice': 99000.0,
'images': ['https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=300&h=300&fit=crop'],
'image_captions': {},
'link_360': null,
'specifications': {},
'category': 'decorative_tiles',
'brand': 'Vasta Stone',
'is_active': true,
'is_featured': false,
'erpnext_item_code': null,
'created_at': '2024-02-20T15:45:00Z',
'updated_at': null,
},
];