mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 22:40:55 +00:00
fix #1619
This commit is contained in:
parent
57d522a96a
commit
fdce4af9c8
@ -162,6 +162,12 @@ type QuerySeter interface {
|
|||||||
// qs.RelatedSel("profile").One(&user)
|
// qs.RelatedSel("profile").One(&user)
|
||||||
// user.Profile.Age = 32
|
// user.Profile.Age = 32
|
||||||
RelatedSel(params ...interface{}) QuerySeter
|
RelatedSel(params ...interface{}) QuerySeter
|
||||||
|
// Set Distinct
|
||||||
|
// for example:
|
||||||
|
// o.QueryTable("policy").Filter("Groups__Group__Users__User", user).
|
||||||
|
// Distinct().
|
||||||
|
// All(&permissions)
|
||||||
|
Distinct() QuerySeter
|
||||||
// return QuerySeter execution result number
|
// return QuerySeter execution result number
|
||||||
// for example:
|
// for example:
|
||||||
// num, err = qs.Filter("profile__age__gt", 28).Count()
|
// num, err = qs.Filter("profile__age__gt", 28).Count()
|
||||||
|
Loading…
Reference in New Issue
Block a user