package model type EqClass struct { ID int `gorm:"column:id"` TypeName string `gorm:"column:typeName" json:"typeName"` TypeCode string `gorm:"column:typeCode" json:"typeCode"` } type EqClassAndPasture struct { EqClass `xorm:"extends"` Pasture `xorm:"extends"` }