Initial tags support (#11)

This commit is contained in:
video-prize-ranch
2022-02-18 16:56:56 -05:00
parent 5ba3b386a6
commit 07a202da8f
11 changed files with 296 additions and 82 deletions

14
types/Submission.go Normal file
View File

@@ -0,0 +1,14 @@
package types
type Submission struct {
Id string
Title string
Link string
Cover Media
Points int64
Upvotes int64
Downvotes int64
Comments int64
Views int64
IsAlbum bool
}

10
types/Tag.go Normal file
View File

@@ -0,0 +1,10 @@
package types
type Tag struct {
Tag string
Display string
Sort string
PostCount int64
Posts []Submission
Background string
}

View File

@@ -8,17 +8,4 @@ type User struct {
Cover string
Avatar string
CreatedAt string
}
type Submission struct {
Id string
Title string
Link string
Cover Media
Points int64
Upvotes int64
Downvotes int64
Comments int64
Views int64
IsAlbum bool
}
}