(e Engine, orgID int64, limit int)
| 302 | } |
| 303 | |
| 304 | func getOrgUsersByOrgID(e Engine, orgID int64, limit int) ([]*OrgUser, error) { |
| 305 | orgUsers := make([]*OrgUser, 0, 10) |
| 306 | |
| 307 | sess := e.Where("org_id=?", orgID) |
| 308 | if limit > 0 { |
| 309 | sess = sess.Limit(limit) |
| 310 | } |
| 311 | return orgUsers, sess.Find(&orgUsers) |
| 312 | } |
| 313 | |
| 314 | // GetOrgUsersByOrgID returns all organization-user relations by organization ID. |
| 315 | func GetOrgUsersByOrgID(orgID int64, limit int) ([]*OrgUser, error) { |
no test coverage detected