models

package
v0.0.0-...-40d0a96 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Id       int           `db:"category_id"`
	ParentId sql.NullInt64 `db:"parent_id"`
	Name     string        `db:"name"`
	Count    int           `db:"count"`
	IsActive bool          `db:"is_active"`
	Created  int64         `db:"created"`
	Updated  int64         `db:"updated"`
	Version  int           `db:"version"`
}

func (Category) IdStr

func (category Category) IdStr() string

func (Category) SetFlashValues

func (category Category) SetFlashValues(c *revel.Flash)

func (Category) Validate

func (category Category) Validate(v *revel.Validation)

type Json

type Json struct {
	Value string
	Data  string
}

type Language

type Language struct {
	Id          int    `db:"language_id"`
	Name        string `db:"name"`
	Description string `db:"description"`
	IsActive    bool   `db:"is_active"`
	Created     int64  `db:"created"`
	Updated     int64  `db:"updated"`
	Version     int    `db:"version"`
}

func (Language) IdStr

func (language Language) IdStr() string

func (Language) SetFlashValues

func (language Language) SetFlashValues(c *revel.Flash)

func (Language) Validate

func (language Language) Validate(v *revel.Validation)

type Model

type Model interface {
	SetFlashValues(c *revel.Flash)
	Validate(v *revel.Validation)
}

type Quote

type Quote struct {
	Id          int    `db:"quote_id"`
	LanguageId  int    `db:"language_id"`
	Description string `db:"description"`
	Content     string `db:"content"`
	IsActive    bool   `db:"is_active"`
	Created     int64  `db:"created"`
	Updated     int64  `db:"updated"`
	Version     int    `db:"version"`
}

type QuoteCategory

type QuoteCategory struct {
	Id         int `db:"quotecategory_id"`
	QuoteId    int `db:"quote_id"`
	CategoryId int `db:"category_id"`
}

type QuoteTag

type QuoteTag struct {
	Id      int `db:"quotetag_id"`
	QuoteId int `db:"quote_id"`
	TagId   int `db:"tag_id"`
}

type QuoteVM

type QuoteVM struct {
	Quote      Quote
	CategoryId sql.NullInt64
	Tags       []string
}

type Tag

type Tag struct {
	Id    int    `db:"tag_id"`
	Name  string `db:"name"`
	Slug  string `db:"slug"`
	Count int    `db:"count"`
}

Jump to

Keyboard shortcuts

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