-
Notifications
You must be signed in to change notification settings - Fork 320
Open
Description
usermodel里面的
Filter() 里面两个参数 “Role_Role_id” 和roleid 为什么可以这样写
func GetUserByRoleId(roleid int64) (users []orm.Params, count int64) {
o := orm.NewOrm()
user := new(User)
count, _ = o.QueryTable(user).Filter("Role__Role__Id", roleid).Values(&users)
return users, count
}
"Role_Role_Id" 这个字符串对应的是什么意思
Filter(string, ...interface{}) QuerySeter
// add NOT condition to querySeter.
// have the same usage as Filter
Metadata
Metadata
Assignees
Labels
No labels