1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 03:20:50 +00:00
This commit is contained in:
astaxie 2016-01-25 20:53:52 +08:00
parent 57d522a96a
commit fdce4af9c8

View File

@ -162,6 +162,12 @@ type QuerySeter interface {
// qs.RelatedSel("profile").One(&user)
// user.Profile.Age = 32
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
// for example:
// num, err = qs.Filter("profile__age__gt", 28).Count()