package channels import ( "time" ) type Channels struct { Id int `xorm:"<- not null pk INT(50)"` Title string `xorm:"VARCHAR(255)"` Code string `xorm:"VARCHAR(200)"` Tags string `xorm:"VARCHAR(50)"` About string `xorm:"VARCHAR(50)"` DId int `xorm:"INT(11)"` VisitLevel int `xorm:"INT(11)"` DataItem int `xorm:"INT(11)"` Unit string `xorm:"VARCHAR(255)"` UnitSign string `xorm:"VARCHAR(255)"` Description string `xorm:"VARCHAR(255)"` SortCode int `xorm:"not null INT(11)"` Enabled int `xorm:"INT(11)"` ChannelState int `xorm:"INT(11)"` CreateOn time.Time `xorm:"DATETIME created"` CreateUserId int `xorm:"VARCHAR(50)"` CreateBy string `xorm:"INT(10)"` ModifiedOn time.Time `xorm:"DATETIME updated"` ModifiedUserId int `xorm:"INT(10)"` ModifiedBy string `xorm:"VARCHAR(50)"` CurrValue float64 `xorm:"DECIMAL(10)"` MaxValue float64 `xorm:"DECIMAL(10)"` MinValue float64 `xorm:"DECIMAL(10)"` LastTime time.Time `xorm:"DATETIME"` SaveTime int `xorm:"INT(11)"` Serial string `xorm:"VARCHAR(255)"` } type ChannelMap struct { Id int CName string CNum string Latitude float32 Longitude float32 Realname string }