diff options
author | rtz12 <koenig@fagott.pw> | 2016-11-15 17:29:02 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-11-15 17:29:02 (UTC) |
commit | 0ad174d7329e02b3f644614de0758789bb3677d4 (patch) | |
tree | e49a659c0b89bdec07cde778850b7fe002ac27ea /dataimport/types.go | |
parent | e02ad854383265db216ed92b10c4f12408999d6a (diff) |
Verrückter Anilist Import
Bestes Feature 2k16.
Hashtag Make Grilist Great Again.
Diffstat (limited to 'dataimport/types.go')
-rw-r--r-- | dataimport/types.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dataimport/types.go b/dataimport/types.go new file mode 100644 index 0000000..82e3b9a --- /dev/null +++ b/dataimport/types.go | |||
@@ -0,0 +1,23 @@ | |||
1 | package dataimport | ||
2 | |||
3 | import "fagott.pw/grilist/models" | ||
4 | |||
5 | type ImporterGril struct { | ||
6 | models.Gril | ||
7 | Order int | ||
8 | Images []Image | ||
9 | } | ||
10 | |||
11 | type ImageType int | ||
12 | |||
13 | const ( | ||
14 | ImageTypeThumbnail ImageType = iota | ||
15 | ImageTypeThumbnailSmall | ||
16 | ImageTypeFull | ||
17 | ImageTypeBanner | ||
18 | ) | ||
19 | |||
20 | type Image struct { | ||
21 | URL string | ||
22 | Type ImageType | ||
23 | } | ||