Skip to content

Commit e869aa4

Browse files
committed
Update data products
1 parent a361453 commit e869aa4

File tree

19 files changed

+140
-16
lines changed

19 files changed

+140
-16
lines changed

server/db/db.json

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"users": [
3-
{
2+
"users": [{
43
"id": "idtest",
54
"username": "tester",
65
"email": "tester@gmail.com",
@@ -25,5 +24,53 @@
2524
"password": "123456"
2625
}
2726
],
28-
"products": []
27+
"products": [{
28+
"id": "iphone-8-plus",
29+
"name": "Iphone 8 Plus",
30+
"image_url": "src/assets/images/products/apple/iphone-8-plus",
31+
"brand": "APPLE"
32+
},
33+
{
34+
"id": "iphone-11-pro-max",
35+
"name": "Iphone 11 Pro Max",
36+
"image_url": "src/assets/images/products/apple/iphone-11-pro-max",
37+
"brand": "APPLE"
38+
},
39+
{
40+
"id": "iphone-11-pro",
41+
"name": "Iphone 11 Pro",
42+
"image_url": "src/assets/images/products/apple/iphone-11-pro",
43+
"brand": "APPLE"
44+
},
45+
{
46+
"id": "iphone-11",
47+
"name": "Iphone 11",
48+
"image_url": "src/assets/images/products/apple/iphone11",
49+
"brand": "APPLE"
50+
},
51+
{
52+
"id": "iphone-se",
53+
"name": "Iphone SE",
54+
"image_url": "src/assets/images/products/apple/iphone-se",
55+
"brand": "APPLE"
56+
},
57+
{
58+
"id": "iphone-x",
59+
"name": "Iphone X",
60+
"image_url": "src/assets/images/products/apple/iphone-x",
61+
"brand": "APPLE"
62+
},
63+
{
64+
"id": "iphone-xr",
65+
"name": "Iphone XR",
66+
"image_url": "src/assets/images/products/apple/iphone-xr",
67+
"brand": "APPLE"
68+
},
69+
{
70+
"id": "iphone-xs-max",
71+
"name": "Iphone XS Max",
72+
"image_url": "src/assets/images/products/apple/iphone-xs-max",
73+
"brand": "APPLE"
74+
}
75+
]
2976
}

src/@types/product.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ interface ResGetProductItemApi extends Res {
2424
interface ResGetProductItem extends ActionRedux {
2525
payload: ResGetProductItemApi;
2626
}
27+
28+
enum PhoneMark {
29+
APPLE,
30+
SAMSUM,
31+
XIAOMI,
32+
HUEWEI,
33+
}
13.6 KB
Loading
12.2 KB
Loading
14.6 KB
Loading
9.78 KB
Loading
12.8 KB
Loading
9.92 KB
Loading
9.13 KB
Loading
15.4 KB
Loading

0 commit comments

Comments
 (0)