forms

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MIT Imports: 18 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 {
	web.Media

	Name      string `json:"name"`
	Label     string `json:"label"`
	Value     string `json:"value"`
	SortOrder int    `json:"sortOrder"`

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

Field field

func (Field) TableName

func (Field) TableName() string

TableName table name

type Form

type Form struct {
	web.Media

	Deadline time.Time `json:"deadline"`
	Title    string    `json:"title"`

	Fields  []Field  `json:"fields"`
	Records []Record `json:"records"`
}

Form form

func (*Form) Expire

func (p *Form) Expire() bool

Expire expire?

func (Form) TableName

func (Form) TableName() string

TableName table name

type Plugin

type Plugin struct {
	Db       *gorm.DB           `inject:""`
	Jwt      *auth.Jwt          `inject:""`
	I18n     *i18n.I18n         `inject:""`
	Settings *settings.Settings `inject:""`
	Server   *job.Server        `inject:""`
}

Plugin plugin

func (*Plugin) Atom

func (p *Plugin) Atom(lang string) ([]*atom.Entry, error)

Atom rss.atom

func (*Plugin) Console

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

Console console commands

func (*Plugin) Init

func (p *Plugin) Init()

Init load config

func (*Plugin) Mount

func (p *Plugin) Mount(rt *gin.Engine)

Mount mount web points

func (*Plugin) Open

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

Open open beans

func (*Plugin) Sitemap

func (p *Plugin) Sitemap() ([]stm.URL, error)

Sitemap sitemap.xml.gz

func (*Plugin) Workers

func (p *Plugin) Workers() map[string]job.Handler

Workers job handler

type Record

type Record struct {
	web.Model

	Username string
	Email    string
	Phone    string
	Value    string

	FormID uint
	Form   Form
}

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