Skip to content

Commit d7f2e21

Browse files
authored
SimpleOrg -> MinimalOrg
1 parent c91648e commit d7f2e21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/org.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ func queryUserOrgIDs(uid int64) *builder.Builder {
432432
Where(builder.Eq{"team_user.uid": uid})
433433
}
434434

435-
// SimpleOrg represents a simple orgnization with only needed columns
436-
type SimpleOrg = User
435+
// MinimalOrg represents a simple orgnization with only needed columns
436+
type MinimalOrg = User
437437

438438
// GetUserOrgsList returns one user's all orgs list
439-
func GetUserOrgsList(uid int64) ([]*SimpleOrg, error) {
439+
func GetUserOrgsList(uid int64) ([]*MinimalOrg, error) {
440440
var orgs = make([]*SimpleOrg, 0, 20)
441441
return orgs, x.Select("id, name, full_name, visibility, avatar, avatar_email, use_custom_avatar").
442442
Table("user").

0 commit comments

Comments
 (0)