Documentation ¶
Index ¶
Constants ¶
View Source
const ( //TypeMarkdown markdown TypeMarkdown = "markdown" //TypeHTML html TypeHTML = "html" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶ added in v0.1.1
type Article struct { web.Model Title string `json:"title"` Summary string `json:"summary"` Body string `json:"body"` Type string `json:"type"` Vote int `json:"vote"` UserID uint `json:"user_id"` User auth.User `json:"user"` Tags []Tag `json:"tags" gorm:"many2many:forum_articles_tags;"` Comments []Comment `json:"comments"` }
Article article
type Comment ¶ added in v0.1.1
type Comment struct { web.Model Body string `json:"body"` Type string `json:"type"` Vote int `json:"vote"` UserID uint `json:"user_id"` User auth.User `json:"user"` ArticleID uint `json:"article_id"` Article Article `json:"article"` }
Comment comment
Click to show internal directories.
Click to hide internal directories.