core

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 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 Currency

type Currency struct {
	ID          int64     `xorm:"id bigint autoincr pk"`
	CID         string    `xorm:"cid varchar(255) notnull unique"`
	Name        string    `xorm:"name varchar(255) notnull"`
	Symbol      string    `xorm:"symbol varchar(255) notnull"`
	Description string    `xorm:"description text notnull"`
	ReleaseTime int       `xorm:"release_time int notnull"`
	Site        string    `xorm:"site varchar(255) notnull"`
	Type        int       `xorm:"type tinyint notnull"`
	ParentCID   string    `xorm:"parent_cid varchar(255) notnull"`
	Rank        int       `xorm:"rank int notnull"`
	CreatedTime time.Time `xorm:"created_time created notnull"`
	UpdatedTime time.Time `xorm:"updated_time updated notnull"`
	DeletedTime time.Time `xorm:"deleted_time deleted default null"`
}

func (Currency) TableName

func (t Currency) TableName() string

type CurrencyExchangeRate

type CurrencyExchangeRate struct {
	ID        int64   `xorm:"id bigint autoincr pk"`
	Timestamp int     `xorm:"timestamp int notnull unique"`
	USD       float64 `xorm:"usd double notnull"`
	CNY       float64 `xorm:"cny double notnull"`
	EUR       float64 `xorm:"eur double notnull"`
	JPY       float64 `xorm:"jpy double notnull"`
	KRW       float64 `xorm:"krw double notnull"`
}

func (CurrencyExchangeRate) TableName

func (t CurrencyExchangeRate) TableName() string

Jump to

Keyboard shortcuts

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