We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type BaseModel struct { Status uint8 `orm:"status"` //数据状态 CreatedAt int `orm:"created_at"` //创建时间 UpdatedAt int `orm:"updated_at"` // 更新时间 } type Ceshi struct{ Id int `orm:"id"` Name string `orm:"name"` Email string `orm:"email"` BaseModel } var ceshi Ceshi db.Table(&ceshi).Where("id", 1).Select()
嵌套的结构体字段无法解析出来,最终执行的语句是 SELECT id, name, email, BaseModel FROM ceshi WHERE id = 1 LIMIT 1 要是这样重复的字段就无法抽象出来
The text was updated successfully, but these errors were encountered:
2.0版本已上线, 已解决此问题
Sorry, something went wrong.
在v2.1.4-rc版本这个问题仍然存在
No branches or pull requests
嵌套的结构体字段无法解析出来,最终执行的语句是
SELECT id, name, email, BaseModel FROM ceshi WHERE id = 1 LIMIT 1
要是这样重复的字段就无法抽象出来
The text was updated successfully, but these errors were encountered: