Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct { ID uint `json:"id"` Title string `json:"title"` Summary string `json:"summary"` Icon string `json:"icon"` Color string `json:"color"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` Posts []*Post // contains filtered or unexported fields }
Catalog catalog
type Plugin ¶
type Plugin struct { I18n *i18n.I18n `inject:""` Cache cache.Cache `inject:""` Jwt *web.Jwt `inject:""` Queue queue.Queue `inject:""` Settings *settings.Settings `inject:""` Security *web.Security `inject:""` Storage storage.Storage `inject:""` Sitemap *web.Sitemap `inject:""` RSS *web.RSS `inject:""` DB *pg.DB `inject:""` Router *gin.Engine `inject:""` Layout *nut.Layout `inject:""` HomePage *nut.HomePage `inject:""` }
Plugin plugin
type Post ¶
type Post struct { ID uint `json:"id"` Title string `json:"title"` Body string `json:"body"` Type string `json:"type"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` UserID uint `json:"userId"` User *nut.User TopicID uint `json:"topicId"` Topic *Topic // contains filtered or unexported fields }
Post post
type Tag ¶
type Tag struct { ID uint `json:"id"` Name string `json:"name"` Color string `json:"color"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` Topics []*Topic `pg:",many2many:forum_topics_tags,joinFK:topic_id"` // contains filtered or unexported fields }
Tag tag
type Topic ¶
type Topic struct { ID uint `json:"id"` Title string `json:"title"` Body string `json:"body"` Type string `json:"type"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` UserID uint `json:"userId"` User *nut.User `json:"user"` CatalogID uint `json:"catalogId"` Catalog *Catalog `json:"catalog"` Posts []*Post `json:"posts"` Tags []*Tag `pg:",many2many:forum_topics_tags,joinFK:tag_id"` // contains filtered or unexported fields }
Topic topic
Click to show internal directories.
Click to hide internal directories.