/
schema.go
64 lines (61 loc) · 2.04 KB
/
schema.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
package lens
type PublicationV1 struct {
Version string `json:"version"`
MetadataID string `json:"metadata_id"`
Content string `json:"content"`
ExternalURL string `json:"external_url"`
Image interface{} `json:"image"`
ImageMimeType interface{} `json:"imageMimeType"`
Name string `json:"name"`
Tags []string `json:"tags"`
AnimationURL interface{} `json:"animation_url"`
MainContentFocus string `json:"mainContentFocus"`
ContentWarning interface{} `json:"contentWarning"`
Attributes []struct {
TraitType string `json:"traitType"`
DisplayType string `json:"displayType"`
Value any `json:"value"`
} `json:"attributes"`
Media []PublicationMedia `json:"media"`
Locale string `json:"locale"`
AppID string `json:"appId"`
}
type PublicationMedia struct {
Item string `json:"item"`
Type string `json:"type"`
}
type PublicationV2 struct {
Schema string `json:"$schema"`
Lens struct {
ID string `json:"id"`
AppID string `json:"appId"`
Locale string `json:"locale"`
MainContentFocus string `json:"mainContentFocus"`
Content string `json:"content"`
Image struct {
Item string `json:"item"`
Type string `json:"type"`
} `json:"image"`
Tags []string `json:"tags"`
Video struct {
Item string `json:"item"`
Attributes []struct {
Type string `json:"type"`
Key string `json:"key"`
Value string `json:"value"`
} `json:"attributes"`
Type string `json:"type"`
AltTag string `json:"altTag"`
Cover string `json:"cover"`
Duration int `json:"duration"`
License string `json:"license"`
} `json:"video"`
} `json:"lens"`
Name string `json:"name"`
Description string `json:"description"`
Image string `json:"image"`
AnimationURL string `json:"animation_url"`
ExternalURL string `json:"external_url"`
Title string `json:"title"`
Content string `json:"content"`
}