aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/merge.go20
-rw-r--r--models/series.go23
2 files changed, 43 insertions, 0 deletions
diff --git a/models/merge.go b/models/merge.go
new file mode 100644
index 0000000..69011f3
--- /dev/null
+++ b/models/merge.go
@@ -0,0 +1,20 @@
1package models
2
3type ForeignID struct {
4 ID int `json:"id"`
5 Mapped int `json:"mapped"`
6}
7
8type Merge struct {
9 ID int `json:"id"`
10 Name string `json:"name"`
11 ImageURL string `json:"image_url"`
12 Targets []MergeGril `json:"targets"`
13}
14
15type MergeGril struct {
16 ID int `json:"id"`
17 Name string `json:"name"`
18 ImageURL string `json:"image_url"`
19 Series []string `json:"series"`
20}
diff --git a/models/series.go b/models/series.go
index 1ae3aa6..4737445 100644
--- a/models/series.go
+++ b/models/series.go
@@ -1,11 +1,34 @@
1package models 1package models
2 2
3type SeriesType int
4
5const (
6 SeriesTypeUnknown SeriesType = iota
7 SeriesTypeFranchise
8 SeriesTypeAnime
9 SeriesTypeMovie
10 SeriesTypeOVA
11 SeriesTypeONA
12 SeriesTypeSpecial
13 SeriesTypeShort
14 SeriesTypeVN
15 SeriesTypeVideoGame
16 SeriesTypeManga
17 SeriesTypeManhua
18 SeriesTypeManhwa
19 SeriesTypeOneShot
20 SeriesTypeDoujin
21 SeriesTypeLN
22)
23
3type Series struct { 24type Series struct {
4 ID int 25 ID int
26 Type SeriesType
5 Name string 27 Name string
6 KanjiName string 28 KanjiName string
7 RomajiName string 29 RomajiName string
8 FuriganaName string 30 FuriganaName string
9 OtherNames []string 31 OtherNames []string
10 Tags []string 32 Tags []string
33 ForeignIDs map[DataSource]int
11} 34}