
type User struct { gorm.Model Name string AccountId uint Account Acount }
type Account struct{ AccountId gorm:"primary_key" Age int } 获取的数据结构是 { id:1, name:"json", accountid:1, account:{ age:32, accountid:1 } } 怎么在不添加数据结构情况下得到下面的结构,就是将 age 提升到外面一级别 { id:1, name:"json", accountid:1, age:32, }