Documentation
¶
Index ¶
- type BoardCreate
- type BoardPostsPreview
- type BoardPreview
- type BoardView
- type Category
- type CommentCreate
- type CommentPreview
- type CommentUpdate
- type File
- type NotificationCreate
- type NotificationMarkAsRead
- type NotificationPreview
- type PostCreate
- type PostPreview
- type PostUpdate
- type PostView
- type ReactionComment
- type ReactionPost
- type Subscription
- type UserCreate
- type UserInfo
- type UserProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardCreate ¶
type BoardPostsPreview ¶
type BoardPostsPreview struct { Board BoardView `json:"board"` Posts []PostPreview `json:"posts"` }
type BoardPreview ¶
type Category ¶
type Category struct { ID uint `json:"id"` Name string `json:"name"` Boards []BoardPreview `json:"boards"` }
type CommentCreate ¶
type CommentCreate struct { PostID uint `json:"post_id"` Content json.RawMessage `json:"content"` AuthorID uint `json:"author"` ParentID uint `json:"parent_id"` }
type CommentPreview ¶
type CommentPreview struct { ID uint `json:"id"` Content json.RawMessage `json:"content"` Author string `json:"author"` Created int64 `json:"created"` Likes int `json:"likes"` Dislikes int `json:"dislikes"` ParentID uint `json:"parent_id"` PostID uint `json:"post_id"` Reaction int `json:"reaction"` }
type CommentUpdate ¶
type CommentUpdate struct { ID uint Content json.RawMessage `json:"content"` }
type NotificationCreate ¶
type NotificationMarkAsRead ¶
type NotificationMarkAsRead struct {
NotificationID uint `json:"notification_id"`
}
type NotificationPreview ¶
type PostCreate ¶
type PostCreate struct { Title string `json:"title"` Content json.RawMessage `json:"content"` AuthorID uint `json:"author_id"` BoardID uint `json:"board_id"` }
type PostPreview ¶
type PostPreview struct { ID uint `json:"id"` Title string `json:"title"` Content json.RawMessage `json:"content"` Author string `json:"author"` Board string `json:"board"` Created int64 `json:"created"` Likes int `json:"likes"` Dislikes int `json:"dislikes"` Comments int `json:"comments"` Reaction int `json:"reaction"` }
type PostUpdate ¶
type PostUpdate struct { ID uint Title string `json:"title"` Content json.RawMessage `json:"content"` }
type PostView ¶
type PostView struct { ID uint `json:"id"` Title string `json:"title"` Content json.RawMessage `json:"content"` Author string `json:"author"` Board string `json:"board"` Created int64 `json:"created"` Likes int `json:"likes"` Dislikes int `json:"dislikes"` Reaction int `json:"reaction"` Comments []CommentPreview `json:"comments"` }
type ReactionComment ¶
type ReactionPost ¶
type Subscription ¶
type Subscription struct {
BoardID uint `json:"board_id"`
}
type UserCreate ¶
Click to show internal directories.
Click to hide internal directories.