models

package
v0.0.0-...-5779a51 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiData

type ApiData struct {
	Id         int       `db:"id"`
	ApiId      int       `db:"api_id"`
	Name       string    `db:"name"`
	Output     string    `db:"output"`
	Valid      bool      `db:valid`
	UpdateTime time.Time `db:"update_time"`
}

func (ApiData) Validate

func (ad ApiData) Validate(v *revel.Validation)

type ApiParam

type ApiParam struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Required string `json:"required"`
	Remark   string `json:"remark"`
}

type Product

type Product struct {
	ProductId   int       `db:"id"`
	Name        string    `db:"name"`
	Description string    `db:"description"`
	CreateAt    time.Time `db:"create_at"`
}

func (Product) Validate

func (p Product) Validate(v *revel.Validation)

type ProductApi

type ProductApi struct {
	Id          int       `db:"id"`
	ProductId   int       `db:"product_id"`
	Path        string    `db:"path"`
	Category    string    `db:"category"`
	Description string    `db:"description"`
	Input       string    `db:"input"`
	Output      string    `db:"output"`
	Style       int       `db:"type"`
	UpdateTime  time.Time `db:"update_time"`
}

func (ProductApi) Validate

func (pa ProductApi) Validate(v *revel.Validation)

Jump to

Keyboard shortcuts

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