Document sqlTeamStore search methods (#14702)

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Flavia Bastos
2020-06-06 05:53:28 -04:00
коммит произвёл GitHub
родитель 6f28f3526d
Коммит ea06c291df

Просмотреть файл

@@ -368,6 +368,8 @@ func (s SqlTeamStore) GetByNames(names []string) ([]*model.Team, *model.AppError
return teams, nil
}
// SearchAll returns from the database a list of teams that match the Name or DisplayName
// passed as the term search parameter.
func (s SqlTeamStore) SearchAll(term string) ([]*model.Team, *model.AppError) {
var teams []*model.Team
@@ -400,6 +402,8 @@ func (s SqlTeamStore) SearchAllPaged(term string, page int, perPage int) ([]*mod
return teams, totalCount, nil
}
// SearchOpen returns from the database a list of public teams that match the Name or DisplayName
// passed as the term search parameter.
func (s SqlTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError) {
var teams []*model.Team
@@ -412,6 +416,8 @@ func (s SqlTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError) {
return teams, nil
}
// SearchPrivate returns from the database a list of private teams that match the Name or DisplayName
// passed as the term search parameter.
func (s SqlTeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError) {
var teams []*model.Team