Documentation
¶
Index ¶
- func CharacterList(t string, i int, v interface{}) error
- func ConnectDB(config *config.Config) *xorm.Engine
- func CreateTables() error
- func FindBigYanAll(by *[]BigYan) error
- func FindBigYanByGoil(by *[]BigYan, v string) error
- func FindBigYanByIndex(by *[]BigYan, i int) error
- func NewDatabase(driver, source string) (err error)
- func Register(i interface{})
- type Base
- type BigYan
- type Character
- type EightCharacter
- type FivePhase
- type Model
- type Zodiac
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CharacterList ¶
func CreateTables ¶
func CreateTables() error
func FindBigYanAll ¶
func FindBigYanByGoil ¶
func FindBigYanByIndex ¶
func NewDatabase ¶
Types ¶
type Base ¶
type Base struct {
Id string `xorm:"uuid pk"`
Created time.Time `xorm:"created"`
Updated time.Time `xorm:"updated"`
Deleted *time.Time `xorm:"deleted"`
Version int `xorm:"version"`
}
func (*Base) BeforeInsert ¶
func (b *Base) BeforeInsert()
type BigYan ¶
type BigYan struct {
Base `xorm:"extends"`
Index int //use array index
Goil string //good or ill luck(吉凶),哈哈
SkyNine string //天九(天九地十)
Comment string
}
BigYan 大衍之数取天九
func GetBigYanByIndex ¶
type Character ¶
type Character struct {
Base `xorm:"extends"`
IsSur bool `xorm:"notnull"` //姓
SimpleChar string `xorm:"varchar(2) index notnull"` //字
SimpleStrokes int `xorm:"notnull default(0)"` //标准笔画数
TradChar string `xorm:"varchar(2) notnull default()"` //繁体
TradStrokes int `xorm:"notnull default(0)"` //繁体笔画数
NameType string `xorm:"varchar(2) notnull default()"` //五行
NameRoot string `xorm:"varchar(128) notnull default()"` //字根
Radical string `xorm:"varchar(16) notnull default()"` //部首
ScienceStrokes int `xorm:"notnull default(0)"` //姓名学笔画数
Pinyin string `xorm:"varchar(128) notnull"` //拼音
Comment string `xorm:"text notnull default() "` //备注
}
type EightCharacter ¶
type EightCharacter interface {
}
Click to show internal directories.
Click to hide internal directories.