models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Result     bool        `json:"result"`
	StatusCode int         `json:"statusCode"`
	Message    string      `json:"message"`
	Info       interface{} `json:"info"`
}

func NewErrorApi

func NewErrorApi() Api

func NewErrorApiWithInfo

func NewErrorApiWithInfo(info interface{}) Api

func NewErrorApiWithMessageAndInfo

func NewErrorApiWithMessageAndInfo(message string, info interface{}) Api

func NewOKApi

func NewOKApi() Api

func NewOKApiWithInfo

func NewOKApiWithInfo(info interface{}) Api

func NewOKApiWithMessageAndInfo

func NewOKApiWithMessageAndInfo(message string, info interface{}) Api

type Author

type Author struct {
	Id   int    `json:"id" xorm:"pk 'id'"`
	Name string `json:"name" xorm:"'name'"`
	Sort string `json:"sort" xorm:"'sort'"`
	Link string `json:"link" xorm:"'link'"`
}

func (Author) TableName

func (Author) TableName() string

type Book

type Book struct {
	Id           int       `json:"id" xorm:"pk 'id'"`
	Title        string    `json:"title" xorm:"'title'"`
	Sort         string    `json:"sort" xorm:"'sort'"`
	Timestamp    time.Time `json:"timestamp"  xorm:"'timestamp'"`
	Pubdate      time.Time `json:"pubdate"  xorm:"'pubdate'"`
	SeriesIndex  float64   `json:"series_index"  xorm:"'series_index'"`
	AuthorSort   string    `json:"author_sort"  xorm:"'author_sort'"`
	Isbn         string    `json:"isbn"  xorm:"'isbn'"`
	Lccn         string    `json:"lccn"  xorm:"'lccn'"`
	Path         string    `json:"path"  xorm:"'path'"`
	Flags        int       `json:"flags"  xorm:"'flags'"`
	Uuid         string    `json:"uuid"  xorm:"'uuid'"`
	HasCover     int       `json:"has_cover"  xorm:"'has_cover'"`
	LastModified time.Time `json:"last_modified"  xorm:"'last_modified'"`
}

func (Book) TableName

func (Book) TableName() string

type BookPluginData

type BookPluginData struct {
	Id   int    `json:"id" xorm:"pk 'id'"`
	Book int    `json:"book" xorm:"'book'"`
	Name string `json:"name"  xorm:"'name'"`
	Val  string `json:"val"  xorm:"'val'"`
}

func (BookPluginData) TableName

func (BookPluginData) TableName() string
type BookRatingLink struct {
	Id     int `json:"id" xorm:"pk 'id'"`
	Book   int `json:"book" xorm:"'book'"`
	Rating int `json:"rating" xorm:"'rating'"`
}

func (BookRatingLink) TableName

func (BookRatingLink) TableName() string
type BookSerieLink struct {
	Id     int `json:"id" xorm:"pk 'id'"`
	Book   int `json:"book" xorm:"'book'"`
	Series int `json:"series" xorm:"'series'"`
}

func (BookSerieLink) TableName

func (BookSerieLink) TableName() string

type BookVo

type BookVo struct {
	Id           int       `json:"id" xorm:"pk 'id'"`
	Title        string    `json:"title" xorm:"'title'"` // book name
	Sort         string    `json:"sort" xorm:"'sort'"`
	Timestamp    time.Time `json:"timestamp"  xorm:"'timestamp'"`
	Pubdate      time.Time `json:"pubdate"  xorm:"'pubdate'"`
	SeriesIndex  float64   `json:"series_index"  xorm:"'series_index'"`
	AuthorSort   string    `json:"author_sort"  xorm:"'author_sort'"`
	Isbn         string    `json:"isbn"  xorm:"'isbn'"`
	Lccn         string    `json:"lccn"  xorm:"'lccn'"`
	Path         string    `json:"path"  xorm:"'path'"`
	Flags        int       `json:"flags"  xorm:"'flags'"`
	Uuid         string    `json:"uuid"  xorm:"'uuid'"`
	HasCover     int       `json:"has_cover"  xorm:"'has_cover'"`
	LastModified time.Time `json:"last_modified"  xorm:"'last_modified'"`

	Rating int `json:"rating" xorm:"'rating'"`

	Name string `json:"name" xorm:"'name'"` //author name

	Comments string `json:"comments" xorm:"'comments'"` //comments's text only use in single book
}

type Comments

type Comments struct {
	Id   int    `json:"id" xorm:"pk 'id'"`
	Book int    `json:"book" xorm:"'book'"`
	Text string `json:"text" xorm:"'text'"`
}

func (Comments) TableName

func (Comments) TableName() string

type ConversionOption

type ConversionOption struct {
	Id     int    `json:"id" xorm:"pk 'id'"`
	Format string `json:"format" xorm:"'format'"`
	Book   int    `json:"book" xorm:"'book'"`
	Data   string `json:"data" xorm:"'data'"`
}

func (ConversionOption) TableName

func (ConversionOption) TableName() string

type CustomColumn

type CustomColumn struct {
	Id            int `json:"id" xorm:"pk 'id'"`
	Label         string
	Name          string
	Datatype      string
	MarkForDelete int
	Editable      int
	Display       string
	IsMultiple    int
	Normalized    int
}

func (CustomColumn) TableName

func (CustomColumn) TableName() string

type Data

type Data struct {
	Id               int    `json:"id" xorm:"pk 'id'"`
	Book             int    `json:"book" xorm:"'book'"`
	Format           string `json:"format" xorm:"'format'"`
	UncompressedSize int    `json:"uncompressed_size" xorm:"'uncompressed_size'"`
	Name             string `json:"name" xorm:"'name'"`
}

func (Data) TableName

func (Data) TableName() string

type Feed

type Feed struct {
	Id     int    `json:"id" xorm:"pk 'id'"`
	Title  string `json:"title" xorm:"'title'"`
	Script string `json:"script" xorm:"'script'"`
}

func (Feed) TableName

func (Feed) TableName() string

type Identifier

type Identifier struct {
	Id   int    `json:"id" xorm:"pk 'id'"`
	Book int    `json:"book" xorm:"'book'"`
	Type string `json:"type"  xorm:"'type'"`
	Val  string `json:"val"  xorm:"'val'"`
}

func (Identifier) TableName

func (Identifier) TableName() string

type Language

type Language struct {
	Id       int    `json:"id" xorm:"pk 'id'"`
	LangCode string `json:"lang_code" xorm:"'lang_code'"`
}

func (Language) TableName

func (Language) TableName() string

type Publisher

type Publisher struct {
	Id   int    `json:"id" xorm:"pk 'id'"`
	Name string `json:"name" xorm:"'name'"`
	Sort string `json:"sort" sort:"'sort'"`
}

func (Publisher) TableName

func (Publisher) TableName() string

type Tag

type Tag struct {
	Id   int    `json:"id" xorm:"pk 'id'"`
	Name string `json:"name" xorm:"'name'"`
}

func (Tag) TableName

func (Tag) TableName() string

Jump to

Keyboard shortcuts

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