Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { web.Model Title string `json:"title"` Summary string `json:"summary"` Body string `json:"body"` Type string `json:"type"` UserID uint `json:"userId"` User auth.User `json:"user"` Tags []Tag `json:"tags" gorm:"many2many:forum_articles_tags;"` Comments []Comment `json:"comments"` }
Article article
type Comment ¶
type Comment struct { web.Model Body string `json:"body"` Type string `json:"type"` UserID uint `json:"userId"` User auth.User `json:"user"` ArticleID uint `json:"articleId"` Article Article `json:"article"` }
Comment comment
Click to show internal directories.
Click to hide internal directories.