package model type Bar struct { Id string `xorm:"'uuid'"` Pastureid string `xorm:"varchar(30) 'FARM_UUID'"` Bname string `xorm:"varchar(20) 'HOUSE_NAME'"` Bcode string `xorm:"varchar(20) 'HOUSE_NUM'"` } func (s *Bar) TableName() string { return "t_jc_house" }