models

package
v0.0.0-...-06f2c85 Latest Latest
Warning

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

Go to latest
Published: May 30, 2014 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Product

type Product struct {
	Id        int64     `json:"id"`
	Code      string    `json:"code"       binding:"required"`
	Name      string    `json:"name"       binding:"required"`
	CreatedAt time.Time `json:"created_at" db:"created_at"`
	UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}

func (*Product) PreInsert

func (p *Product) PreInsert(s gorp.SqlExecutor) error

func (*Product) PreUpdate

func (p *Product) PreUpdate(s gorp.SqlExecutor) error

type Products

type Products struct {
	Collection []Product `json:"products"`
}

Jump to

Keyboard shortcuts

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