package model import "time" type Receiver struct { Id int64 `xorm:"'id'"` IMEI string `xorm:"varchar(80) 'IMEI'"` //牧场id Pastureid string `xorm:"varchar(30) 'FARM_UUID'"` //牧场uuid //Location string `xorm:"varchar(30) 'DEVICE_ADDRESS'"` //设备位置(1:奶厅1,2:奶厅2) BarId string `xorm:"varchar(110) 'PHYHOUSE_UUID'"` //栏舍名称 UpdateDate time.Time `xorm:"DATETIME 'updatedate'"` //最后修改时间 SimID int64 `xorm:"bigint(20) 'simid'"` Status int64 `xorm:"int(1) 'status'"` //是否删除(0:否,1:是 UUID string `xorm:"varchar(80) 'uuid'"` TYPE string `xorm:"varchar(80) 'TYPE'"` Coordinates string `xorm:"coordinates"` } func (s *Receiver) TableName() string { return "t_sb_device_connection" } type ListReceiver struct { Receiver `xorm:"extends"` Sim `xorm:"extends"` Pasture `xorm:"extends"` BarName string `xorm:"PHYSICALNAME"` Image string `xorm:"image"` }