arch(sprint1): separate backoffice business mocks from bootstrap

This commit is contained in:
sdarbinyan
2026-07-03 01:59:18 +04:00
parent ae258382e1
commit 95dbea7768
5 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# Mock Data Boundaries
- `bootstrap/`: tenant and platform configuration only.
- `website/`: website business/content mocks.
- `builder/`: builder configuration editing mocks.
- `backoffice/`: business domain data (products, categories, orders, customers).
Backoffice business data must not be stored under `bootstrap/`.

View File

@@ -0,0 +1,16 @@
[
{
"id": "cat-001",
"title": "Electronics",
"description": "Phones, laptops and accessories",
"imageUrl": "https://images.unsplash.com/photo-1498049794561-7780e7231661?w=400&h=300&fit=crop",
"itemsCount": 120
},
{
"id": "cat-002",
"title": "Clothing",
"description": "Fashion for everyone",
"imageUrl": "https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=400&h=300&fit=crop",
"itemsCount": 80
}
]

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,34 @@
[
{
"id": "prod-001",
"sku": "SKU-001",
"title": "Demo Product 1",
"subtitle": "Platform product mock",
"imageUrl": "https://images.unsplash.com/photo-1511707171634-5f897ff02aa9?w=600&h=400&fit=crop",
"badges": ["new"],
"tags": ["featured"],
"rating": 4.8,
"reviewsCount": 15,
"price": {
"amount": 149990,
"currency": "RUB",
"originalAmount": 169990
},
"stockStatus": "in_stock"
},
{
"id": "prod-002",
"sku": "SKU-002",
"title": "Demo Product 2",
"imageUrl": "https://images.unsplash.com/photo-1496181133206-80ce9b88a853?w=600&h=400&fit=crop",
"badges": ["sale"],
"tags": ["bestseller"],
"rating": 4.6,
"reviewsCount": 8,
"price": {
"amount": 89990,
"currency": "RUB"
},
"stockStatus": "low_stock"
}
]