package model import "time" //脖环管理 type Management struct { Id int64 `xorm:"pk autoincr 'id'"` Pastureid string `xorm:"varchar(80) 'FARM_UUID'"` //牧场id Count int64 `xorm:"int(11) 'count'"` //出厂数量 Genre int64 `xorm:"int(1) 'genre'"` //0 售卖,1 返厂 2 置换 Recall int64 `xorm:"int(11) 'recall'"` //关联召回批次数 ImportTime time.Time `xorm:"DATETIME 'importdate'"` //导入时间 } func (s *Management) TableName() string { return "management" } type ManagementList struct { Management `xorm:"extends"` PastureName string `xorm:"FARM_NAME"` }