Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID uint `json:"id"` Title string `json:"title"` Body string `json:"body"` Type string `json:"type"` User nut.User `json:"user"` UserID uint `json:"userId"` Tags []Tag `json:"tags" pg:",many2many:forum_articles_tags"` Comments []Comment `json:"comments"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` // contains filtered or unexported fields }
Article article
type ArticleTag ¶
ArticleTag articles-tags
type Comment ¶
type Comment struct { ID uint `json:"id"` Body string `json:"body"` Type string `json:"type"` User nut.User `json:"user"` UserID uint `json:"userId"` Article Article `json:"article"` ArticleID uint `json:"articleId"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` // contains filtered or unexported fields }
Comment comment
type Plugin ¶
type Plugin struct { I18n *web.I18n `inject:""` Cache *web.Cache `inject:""` Router *gin.Engine `inject:""` Settings *web.Settings `inject:""` Security *web.Security `inject:""` Jwt *web.Jwt `inject:""` DB *pg.DB `inject:""` Dao *nut.Dao `inject:""` Layout *nut.Layout `inject:""` }
Plugin plugin
Click to show internal directories.
Click to hide internal directories.