Documentation
¶
Index ¶
- type Article
- type Comment
- type Plugin
- func (p *Plugin) Atom(lang string) ([]*atom.Entry, error)
- func (p *Plugin) Console() []cli.Command
- func (p *Plugin) Init()
- func (p *Plugin) Mount(rt *gin.Engine)
- func (p *Plugin) Open(*inject.Graph) error
- func (p *Plugin) Sitemap() ([]stm.URL, error)
- func (p *Plugin) Workers() map[string]job.Handler
- type Tag
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.