From a66b676481d273508927e64a22e388dc302890ba Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 22 May 2022 14:08:36 -0700 Subject: route organization --- route/structs.go | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 route/structs.go (limited to 'route/structs.go') diff --git a/route/structs.go b/route/structs.go new file mode 100644 index 0000000..7b1c2b8 --- /dev/null +++ b/route/structs.go @@ -0,0 +1,56 @@ +package route + +import ( + "github.com/FChannel0/FChannel-Server/activitypub" + "github.com/FChannel0/FChannel-Server/db" + "github.com/FChannel0/FChannel-Server/util" + "github.com/FChannel0/FChannel-Server/webfinger" +) + +type PageData struct { + Title string + PreferredUsername string + Board webfinger.Board + Pages []int + CurrentPage int + TotalPage int + Boards []webfinger.Board + Posts []activitypub.ObjectBase + Key string + PostId string + Instance activitypub.Actor + InstanceIndex []activitypub.ObjectBase + ReturnTo string + NewsItems []db.NewsItem + BoardRemainer []int + Meta Meta + + Themes *[]string + ThemeCookie string +} + +type AdminPage struct { + Title string + Board webfinger.Board + Key string + Actor string + Boards []webfinger.Board + Following []string + Followers []string + Reported []db.Report + Domain string + IsLocal bool + PostBlacklist []util.PostBlacklist + AutoSubscribe bool + RecentPosts []activitypub.ObjectBase + + Themes *[]string + ThemeCookie string +} + +type Meta struct { + Title string + Description string + Url string + Preview string +} -- cgit v1.2.3