code: func GetTeamMembers(query *m.GetTeamMembersQuery) error {
  	query.Result = make([]*m.TeamMemberDTO, 0)
  	sess := x.Table("team_member")
  	sess.Join("INNER", x.Dialect().Quote("user"), fmt.Sprintf("team_member.user_id=%s.id", x.Dialect().Quote("user")))
  	if query.OrgId != 0 {
  		sess.Where("team_member.org_id=?", query.OrgId)
  	}
  	if query.TeamId != 0 {
  		sess.Where("team_member.team_id=?", query.TeamId)
  	}
  	if query.UserId != 0 {
  		sess.Where("team_member.user_id=?", query.UserId)
  	}
  	if query.External {
  		sess.Where("team_member.external=?", dialect.BooleanStr(true))
  	}
  	sess.Cols("team_member.org_id", "team_member.team_id", "team_member.user_id", "user.email", "user.login", "team_member.external", "team_member.permission")
  	sess.Asc("user.login", "user.email")
  
  	err := sess.Find(&query.Result)
  	return err
  }
docs: // GetTeamMembers return a list of members for the specified team