diff options
author | jan <jan@ruken.pw> | 2015-12-25 19:27:44 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2015-12-25 19:27:44 (UTC) |
commit | 3a79416f963d1c72298ac4eaf842e3fedd323022 (patch) | |
tree | 4b9bbb6c25f134a0200eb703d530e2631d116d73 | |
parent | 213a8d2e3ba4fcaff0b750bd493bf8f94f21dd31 (diff) |
dummy-gril zurückgeben
-rw-r--r-- | modules/grils/grils.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/grils/grils.go b/modules/grils/grils.go index fa1f21c..41783a7 100644 --- a/modules/grils/grils.go +++ b/modules/grils/grils.go | |||
@@ -3,6 +3,7 @@ package grils | |||
3 | import ( | 3 | import ( |
4 | "fagott.pw/charakterin" | 4 | "fagott.pw/charakterin" |
5 | "fagott.pw/grilist/grilist" | 5 | "fagott.pw/grilist/grilist" |
6 | "time" | ||
6 | ) | 7 | ) |
7 | 8 | ||
8 | type GrilsModule struct { | 9 | type GrilsModule struct { |
@@ -28,6 +29,18 @@ func (m *GrilsModule) ProvideDashboardData(user *charakterin.User) []grilist.Das | |||
28 | return []grilist.DashboardCategory{} | 29 | return []grilist.DashboardCategory{} |
29 | } | 30 | } |
30 | 31 | ||
32 | func (m *GrilsModule) FromID(id int) *Gril { | ||
33 | return &Gril{ | ||
34 | ID: id, | ||
35 | KanjiName: "藤林 杏", | ||
36 | RomajiName: "Kyou Fujibayashi", | ||
37 | OtherNames: []string{"ふじばやし きょう"}, | ||
38 | Age: 17, | ||
39 | Birthday: time.Now(), | ||
40 | Tags: []string{"tsundere", "hair intakes", "hair ribbon", "school uniform", "school crest"}, | ||
41 | } | ||
42 | } | ||
43 | |||
31 | func New() *GrilsModule { | 44 | func New() *GrilsModule { |
32 | return &GrilsModule{} | 45 | return &GrilsModule{} |
33 | } | 46 | } |