-
Notifications
You must be signed in to change notification settings - Fork 0
/
catalog.go
52 lines (47 loc) · 1.48 KB
/
catalog.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
package shopgun
// Catalog type
type Catalog struct {
ID string `json:"id"`
Ern string `json:"ern"`
Label interface{} `json:"label"`
Background interface{} `json:"background"`
RunFrom Time `json:"run_from"`
RunTill Time `json:"run_till"`
PageCount int `json:"page_count"`
OfferCount int `json:"offer_count"`
Branding Branding `json:"branding"`
DealerID string `json:"dealer_id"`
DealerURL string `json:"dealer_url"`
StoreID string `json:"store_id"`
StoreURL string `json:"store_url"`
Dimensions Dimensions `json:"dimensions"`
Images Images `json:"images"`
CategoryIds []interface{} `json:"category_ids"`
PdfURL interface{} `json:"pdf_url"`
}
// Branding type
type Branding struct {
Name string `json:"name"`
URLName string `json:"url_name"`
Website string `json:"website"`
Logo string `json:"logo"`
LogoBackground interface{} `json:"logo_background"`
Color string `json:"color"`
Pageflip Pageflip `json:"pageflip"`
}
// Pageflip type
type Pageflip struct {
Logo string `json:"logo"`
Color string `json:"color"`
}
// Dimensions type
type Dimensions struct {
Height float64 `json:"height"`
Width int `json:"width"`
}
// Images type
type Images struct {
Thumb string `json:"thumb"`
View string `json:"view"`
Zoom string `json:"zoom"`
}