reading

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	ID uint `gorm:"primary_key" json:"id"`

	Author      string    `json:"author"`
	Publisher   string    `json:"publisher"`
	Title       string    `json:"title"`
	Type        string    `json:"type"`
	Lang        string    `json:"lang"`
	File        string    `json:"-"`
	Subject     string    `json:"subject"`
	Description string    `json:"description"`
	PublishedAt time.Time `json:"publishedAt"`
	Cover       string    `json:"cover"`
	UpdatedAt   time.Time
	CreatedAt   time.Time
}

Book book

func (Book) TableName

func (Book) TableName() string

TableName table name

type Note

type Note struct {
	ID        uint `gorm:"primary_key" json:"id"`
	Type      string
	Body      string
	UpdatedAt time.Time
	CreatedAt time.Time

	User   nut.User
	UserID uint
	Book   Book
	BookID uint
}

Note note

func (Note) TableName

func (Note) TableName() string

TableName table name

type Plugin

type Plugin struct {
	I18n   *web.I18n      `inject:""`
	Cache  *web.Cache     `inject:""`
	Jwt    *web.Jwt       `inject:""`
	Router *gin.Engine    `inject:""`
	DB     *gorm.DB       `inject:""`
	Render *render.Render `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

Jump to

Keyboard shortcuts

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