Each post has total down/upvote count

This commit is contained in:
2024-07-26 21:09:53 +08:00
parent 37aa69e6ca
commit 30399be718
2 changed files with 17 additions and 0 deletions

View File

@ -34,6 +34,9 @@ type Post struct {
PublishedAt *time.Time `json:"published_at"`
PublishedUntil *time.Time `json:"published_until"`
TotalUpvote int `json:"total_upvote"`
TotalDownvote int `json:"total_downvote"`
AuthorID uint `json:"author_id"`
Author Account `json:"author"`