receiver.go 1.0 KB

1234567891011121314151617181920212223242526272829
  1. package model
  2. import "time"
  3. type Receiver struct {
  4. Id int64 `xorm:"'id'"`
  5. IMEI string `xorm:"varchar(80) 'IMEI'"` //牧场id
  6. Pastureid string `xorm:"varchar(30) 'FARM_UUID'"` //牧场uuid
  7. //Location string `xorm:"varchar(30) 'DEVICE_ADDRESS'"` //设备位置(1:奶厅1,2:奶厅2)
  8. BarId string `xorm:"varchar(110) 'PHYHOUSE_UUID'"` //栏舍名称
  9. UpdateDate time.Time `xorm:"DATETIME 'updatedate'"` //最后修改时间
  10. SimID int64 `xorm:"bigint(20) 'simid'"`
  11. Status int64 `xorm:"int(1) 'status'"` //是否删除(0:否,1:是
  12. UUID string `xorm:"varchar(80) 'uuid'"`
  13. TYPE string `xorm:"varchar(80) 'TYPE'"`
  14. Coordinates string `xorm:"coordinates"`
  15. }
  16. func (s *Receiver) TableName() string {
  17. return "t_sb_device_connection"
  18. }
  19. type ListReceiver struct {
  20. Receiver `xorm:"extends"`
  21. Sim `xorm:"extends"`
  22. Pasture `xorm:"extends"`
  23. BarName string `xorm:"PHYSICALNAME"`
  24. Image string `xorm:"image"`
  25. }