beego orm 如何使用反射获取匿名字段的功能?

问题:
beedb 中有这样的一种功能

type SQLModel struct {
    Id       int       `beedb:"PK" sql:"id"`
    Created  time.Time `sql:"created"`
    Modified time.Time `sql:"modified"`
}
type User struct {
    SQLModel `sql:",inline"`
    Name     string `sql:"name" tname:"fn_group"`
    Auth     int    `sql:"auth"`
}
// the SQL table “User” has the columns: id, name, auth, created, modified
// They are marshalled and unmarshalled automatically because of the inline keyword

我想请问一下,beego orm里面需要怎样实现这种功能
尝试了rel可是不行

查看回复