channels.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package channels
  2. import (
  3. "time"
  4. )
  5. type Channels struct {
  6. Id int `xorm:"<- not null pk INT(50)"`
  7. Title string `xorm:"VARCHAR(255)"`
  8. Code string `xorm:"VARCHAR(200)"`
  9. Tags string `xorm:"VARCHAR(50)"`
  10. About string `xorm:"VARCHAR(50)"`
  11. DId int `xorm:"INT(11)"`
  12. VisitLevel int `xorm:"INT(11)"`
  13. DataItem int `xorm:"INT(11)"`
  14. Unit string `xorm:"VARCHAR(255)"`
  15. UnitSign string `xorm:"VARCHAR(255)"`
  16. Description string `xorm:"VARCHAR(255)"`
  17. SortCode int `xorm:"not null INT(11)"`
  18. Enabled int `xorm:"INT(11)"`
  19. ChannelState int `xorm:"INT(11)"`
  20. CreateOn time.Time `xorm:"DATETIME created"`
  21. CreateUserId int `xorm:"VARCHAR(50)"`
  22. CreateBy string `xorm:"INT(10)"`
  23. ModifiedOn time.Time `xorm:"DATETIME updated"`
  24. ModifiedUserId int `xorm:"INT(10)"`
  25. ModifiedBy string `xorm:"VARCHAR(50)"`
  26. CurrValue float64 `xorm:"DECIMAL(10)"`
  27. MaxValue float64 `xorm:"DECIMAL(10)"`
  28. MinValue float64 `xorm:"DECIMAL(10)"`
  29. LastTime time.Time `xorm:"DATETIME"`
  30. SaveTime int `xorm:"INT(11)"`
  31. Serial string `xorm:"VARCHAR(255)"`
  32. }
  33. type ChannelMap struct {
  34. Id int
  35. CName string
  36. CNum string
  37. Latitude float32
  38. Longitude float32
  39. Realname string
  40. }