-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
55 lines (50 loc) · 2.22 KB
/
models.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
package es
import (
"github.com/Bnei-Baruch/archive-backend/utils"
)
type Collection struct {
MDB_UID string `json:"mdb_uid"`
ContentType string `json:"content_type"`
FilmDate *utils.Date `json:"film_date"`
Names map[string]string `json:"names"`
Descriptions map[string]string `json:"descriptions"`
ContentUnits []*ContentUnit `json:"content_units"`
}
type ContentUnit struct {
MDB_UID string `json:"mdb_uid"`
TypedUIDs []string `json:"typed_uids"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ContentType string `json:"content_type"`
CollectionsContentTypes []string `json:"collections_content_types,omitempty"`
FilmDate *utils.Date `json:"film_date,omitempty"`
Duration uint16 `json:"duration,omitempty"`
OriginalLanguage string `json:"original_language,omitempty"`
Translations []string `json:"translations,omitempty"`
Tags []string `json:"tags,omitempty"`
Sources []string `json:"sources,omitempty"`
Authors []string `json:"authors,omitempty"`
Persons []string `json:"persons,omitempty"`
Transcript string `json:"transcript,omitempty"`
}
type File struct {
MDB_UID string `json:"mdb_uid"`
Name string `json:"name"`
Size int64 `json:"size"`
URL string `json:"url"`
Secure int `json:"secure"`
FilmDate *utils.Date `json:"film_date"`
Duration float64 `json:"duration,omitempty"`
Language string `json:"language,omitempty"`
MimeType string `json:"mimetype,omitempty"`
Type string `json:"type,omitempty"`
SubType string `json:"subtype,omitempty"`
}
type Classification struct {
MDB_UID string `json:"mdb_uid"`
Name string `json:"name,omitempty"`
NameSuggest string `json:"name_suggest,omitempty"`
Description string `json:"description,omitempty"`
DescriptionSuggest string `json:"description_suggest,omitempty"`
Type string `json:"classification_type"`
}