-
Notifications
You must be signed in to change notification settings - Fork 2
/
gocontentfulvo.go
100 lines (89 loc) · 4.51 KB
/
gocontentfulvo.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
92
93
94
95
96
97
98
99
100
// Code generated by https://github.com/foomo/gocontentful v1.0.23 - DO NOT EDIT.
package testapi
import (
"sync"
"github.com/foomo/contentful"
)
type CfBrand struct {
Sys ContentfulSys `json:"sys,omitempty"`
Fields CfBrandFields `json:"fields,omitempty"`
CC *ContentfulClient `json:"-"`
}
// CfBrandFields is a CfNameFields VO
type CfBrandFields struct {
CompanyName map[string]string `json:"companyName,omitempty"`
RWLockCompanyName sync.RWMutex `json:"-"`
Logo map[string]ContentTypeSys `json:"logo,omitempty"`
RWLockLogo sync.RWMutex `json:"-"`
CompanyDescription map[string]string `json:"companyDescription,omitempty"`
RWLockCompanyDescription sync.RWMutex `json:"-"`
Website map[string]string `json:"website,omitempty"`
RWLockWebsite sync.RWMutex `json:"-"`
Twitter map[string]string `json:"twitter,omitempty"`
RWLockTwitter sync.RWMutex `json:"-"`
Email map[string]string `json:"email,omitempty"`
RWLockEmail sync.RWMutex `json:"-"`
Phone map[string][]string `json:"phone,omitempty"`
RWLockPhone sync.RWMutex `json:"-"`
}
type CfBrandFieldsLogo struct {
Entry *contentful.Asset
Col *contentful.Collection
}
type CfCategory struct {
Sys ContentfulSys `json:"sys,omitempty"`
Fields CfCategoryFields `json:"fields,omitempty"`
CC *ContentfulClient `json:"-"`
}
// CfCategoryFields is a CfNameFields VO
type CfCategoryFields struct {
Title map[string]string `json:"title,omitempty"`
RWLockTitle sync.RWMutex `json:"-"`
Icon map[string]ContentTypeSys `json:"icon,omitempty"`
RWLockIcon sync.RWMutex `json:"-"`
CategoryDescription map[string]string `json:"categoryDescription,omitempty"`
RWLockCategoryDescription sync.RWMutex `json:"-"`
}
type CfCategoryFieldsIcon struct {
Entry *contentful.Asset
Col *contentful.Collection
}
type CfProduct struct {
Sys ContentfulSys `json:"sys,omitempty"`
Fields CfProductFields `json:"fields,omitempty"`
CC *ContentfulClient `json:"-"`
}
// CfProductFields is a CfNameFields VO
type CfProductFields struct {
ProductName map[string]string `json:"productName,omitempty"`
RWLockProductName sync.RWMutex `json:"-"`
Slug map[string]string `json:"slug,omitempty"`
RWLockSlug sync.RWMutex `json:"-"`
ProductDescription map[string]string `json:"productDescription,omitempty"`
RWLockProductDescription sync.RWMutex `json:"-"`
Sizetypecolor map[string]string `json:"sizetypecolor,omitempty"`
RWLockSizetypecolor sync.RWMutex `json:"-"`
Image map[string][]ContentTypeSys `json:"image,omitempty"`
RWLockImage sync.RWMutex `json:"-"`
Tags map[string][]string `json:"tags,omitempty"`
RWLockTags sync.RWMutex `json:"-"`
Categories map[string][]ContentTypeSys `json:"categories,omitempty"`
RWLockCategories sync.RWMutex `json:"-"`
Price map[string]float64 `json:"price,omitempty"`
RWLockPrice sync.RWMutex `json:"-"`
Brand map[string]ContentTypeSys `json:"brand,omitempty"`
RWLockBrand sync.RWMutex `json:"-"`
Quantity map[string]float64 `json:"quantity,omitempty"`
RWLockQuantity sync.RWMutex `json:"-"`
Sku map[string]string `json:"sku,omitempty"`
RWLockSku sync.RWMutex `json:"-"`
Website map[string]string `json:"website,omitempty"`
RWLockWebsite sync.RWMutex `json:"-"`
SeoText map[string]interface{} `json:"seoText,omitempty"`
RWLockSeoText sync.RWMutex `json:"-"`
Nodes map[string]interface{} `json:"nodes,omitempty"`
RWLockNodes sync.RWMutex `json:"-"`
}
type genericEntryNoFields struct {
Sys ContentfulSys `json:"sys,omitempty"`
}