forum

package
v0.0.0-...-00e0705 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2018 License: MIT Imports: 14 Imported by: 0

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

func (*Plugin) Init

func (p *Plugin) Init(*inject.Graph) error

Init init beans

func (*Plugin) Mount

func (p *Plugin) Mount() error

Mount register

func (*Plugin) Shell

func (p *Plugin) Shell() []cli.Command

Shell console commands

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL