-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathformat.go
91 lines (89 loc) · 1.86 KB
/
format.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package gozon
type Data struct {
Asin Asin
URL string
Title string
MerchandID string
Rating float32
Available bool
Price Price
ShippingAddress string
Variations Variations
MainPanelDesc MainPanelDesciptions
Images []Imgs
}
type MainPanelDesciptions struct {
Details []LabelValue
AboutThis []string
IconsPanel []IconPanel
}
type IconPanel struct {
URL string
Label string
Value string
}
type Variations struct {
Labels []LabelValues
Combinations []Combination
}
type dataRaw struct {
Asin Asin
Title string
URL string
Alterts string
MerchandID string
Rating float32
Price Price
Available bool
Dimensions []string
ShippingAddress string
VariationDisplayLabels map[string][]string
Variations map[string][]string
MainPanelDesc MainPanelDesciptions
Images []ImgsPage
}
type Asin struct {
Me string
Parent string
}
type LabelValue struct {
Label string
Value string
}
type LabelValues struct {
Label string
Values []string
}
type Combination struct {
Asin string
Values []string
}
type Label struct {
Size_name string `json:"size_name"`
Color_name string `json:"color_name"`
}
type Price struct {
Low float32
High float32
Base float32
SavingsPercentage int
CurrencySymbol string
}
type ImgsPage struct {
Variant string `json:"variant"`
Large string `json:"large"`
Thumb string `json:"thumb"`
HiRes string `json:"hiRes"`
}
type Imgs struct {
Variant string
Large URLImg
Thumb URLImg
HiRes URLImg
}
type URLImg struct {
ContentType string
Extension string
URL string
Content []byte `json:"-"`
}