未验证 提交 2f8b5302 编写于 作者: A astaxie 提交者: GitHub

Merge pull request #995 from wuyumin/master

Text location error
......@@ -206,8 +206,8 @@ type Profile struct {
type Post struct {
Id int
Title string
User *User `orm:"rel(fk)"` //设置一对多关系
Tags []*Tag `orm:"rel(m2m)"`
User *User `orm:"rel(fk)"`
Tags []*Tag `orm:"rel(m2m)"` //设置一对多关系
}
type Tag struct {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册