forum

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 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 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

type ArticleTag struct {
	ArticleID uint
	TagID     uint
	// contains filtered or unexported fields
}

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

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 Tag

type Tag struct {
	ID        uint      `json:"id"`
	Name      string    `json:"name"`
	Articles  []Article `json:"articles" pg:",many2many:forum_articles_tags"`
	UpdatedAt time.Time `json:"updatedAt"`
	CreatedAt time.Time `json:"createdAt"`
	// contains filtered or unexported fields
}

Tag tag

Jump to

Keyboard shortcuts

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