package models type CowClass struct { Id int64 `xorm:"id"` PastureId int64 `xorm:"pastureid"` ClassCode string `xorm:"classcode"` ClassName string `xorm:"classname"` Sort int32 `xorm:"sort"` Enable int32 `xorm:"enable"` ParentId int32 `xorm:"parentid"` ParentName string `xorm:"parentname"` Backup1 string `xorm:"backup1"` GroupId int64 `xorm:"group_id"` } func (c *CowClass) TableName() string { return "cowclass" }