diff options
Diffstat (limited to 'routes/structs.go')
-rw-r--r-- | routes/structs.go | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/routes/structs.go b/routes/structs.go new file mode 100644 index 0000000..c145a6d --- /dev/null +++ b/routes/structs.go @@ -0,0 +1,45 @@ +package routes + +import ( + "github.com/FChannel0/FChannel-Server/activitypub" + "github.com/FChannel0/FChannel-Server/db" +) + +type PageData struct { + Title string + PreferredUsername string + Board db.Board + Pages []int + CurrentPage int + TotalPage int + Boards []db.Board + Posts []activitypub.ObjectBase + Key string + PostId string + Instance activitypub.Actor + InstanceIndex []activitypub.ObjectBase + ReturnTo string + NewsItems []db.NewsItem + BoardRemainer []int + + Themes *[]string + ThemeCookie string +} + +type AdminPage struct { + Title string + Board db.Board + Key string + Actor string + Boards []db.Board + Following []string + Followers []string + Reported []db.Report + Domain string + IsLocal bool + PostBlacklist []db.PostBlacklist + AutoSubscribe bool + + Themes *[]string + ThemeCookie string +} |