aboutsummaryrefslogtreecommitdiff
path: root/routes/structs.go
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-11-02 16:10:57 -0300
committerFChannel <>2022-06-19 12:53:29 -0700
commitbc9051fd1a17e793647cf309c973a7feefebd98f (patch)
treebf16a2176e9129c3921ef6743a6c22781e744064 /routes/structs.go
parentd80afd8a49f552c5dc51d8346d40809298fef11f (diff)
down to the main package it seems
Diffstat (limited to 'routes/structs.go')
-rw-r--r--routes/structs.go45
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
+}