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 `gorm:"primary_key" json:"id"` Title string `json:"title"` Body string `json:"body"` Lang string `json:"lang"` Type string `json:"type"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` User nut.User UserID uint Tags []Tag `json:"tags" gorm:"many2many:forum_articles_tags;"` Comments []Comment `json:"comments"` }
Article article
type Comment ¶
type Comment struct { ID uint `gorm:"primary_key" json:"id"` Body string `json:"body"` Type string `json:"type"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` User nut.User `json:"user"` UserID uint Article Article `json:"article"` ArticleID uint `json:"articleId"` }
Comment comment
type Plugin ¶
type Plugin struct { I18n *web.I18n `inject:""` Cache *web.Cache `inject:""` Jwt *web.Jwt `inject:""` Sitemap *web.Sitemap `inject:""` RSS *web.RSS `inject:""` Layout *nut.Layout `inject:""` Router *gin.Engine `inject:""` DB *gorm.DB `inject:""` Render *render.Render `inject:""` }
Plugin plugin
Click to show internal directories.
Click to hide internal directories.