Story post has poll

This commit is contained in:
2025-02-12 22:40:48 +08:00
parent 0904f91b01
commit 9e2f2eedf9
2 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,9 @@ type Post struct {
TotalUpvote int `json:"total_upvote"`
TotalDownvote int `json:"total_downvote"`
PollID *uint `json:"poll_id"`
Poll *Poll `json:"poll"`
RealmID *uint `json:"realm_id"`
Realm *authm.Realm `json:"realm" gorm:"-"`