survey

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	ID        uint      `gorm:"primary_key" json:"id"`
	Body      string    `json:"body"`
	Type      string    `json:"type"`
	Name      string    `json:"name"`
	Label     string    `json:"label"`
	Value     string    `json:"value"`
	Required  bool      `json:"required"`
	SortOrder int       `json:"sortOrder"`
	UpdatedAt time.Time `json:"updatedAt"`
	CreatedAt time.Time `json:"createdAt"`

	Form   Form
	FormID uint
}

Field field

func (Field) TableName

func (Field) TableName() string

TableName table name

type Form

type Form struct {
	ID        uint      `gorm:"primary_key" json:"id"`
	Mode      string    `json:"mode"`
	Title     string    `json:"title"`
	Body      string    `json:"body"`
	Type      string    `json:"type"`
	StartUp   time.Time `json:"startUp"`
	ShutDown  time.Time `json:"shutDown"`
	UpdatedAt time.Time
	CreatedAt time.Time

	User    nut.User
	UserID  uint
	Fields  []Field  `json:"fields"`
	Records []Record `json:"records"`
}

Form form

func (*Form) Available

func (p *Form) Available() bool

Available available?

func (Form) TableName

func (Form) TableName() string

TableName table name

type Plugin

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

type Record struct {
	ID        uint      `gorm:"primary_key" json:"id"`
	Email     string    `json:"email"`
	Value     string    `json:"value"`
	UpdatedAt time.Time `json:"updatedAt"`
	CreatedAt time.Time `json:"createdAt"`

	Form   Form
	FormID uint `json:"formId"`
}

Record record

func (Record) TableName

func (Record) TableName() string

TableName table name

Jump to

Keyboard shortcuts

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