MM-16500: Adds ability to retrieve the total count of teams via the API. (#11325)

Этот коммит содержится в:
Martin Kraft
2019-06-24 17:05:34 -04:00
коммит произвёл Miguel de la Cruz
родитель 49d5037a89
Коммит c07b7046ca
6 изменённых файлов: 78 добавлений и 3 удалений

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

@@ -69,6 +69,7 @@ type Params struct {
NotAssociatedToGroup string
ExcludeDefaultChannels bool
GroupIDs string
IncludeTotalCount bool
}
func ParamsFromRequest(r *http.Request) *Params {
@@ -271,5 +272,9 @@ func ParamsFromRequest(r *http.Request) *Params {
params.GroupIDs = query.Get("group_ids")
if val, err := strconv.ParseBool(query.Get("include_total_count")); err == nil {
params.IncludeTotalCount = val
}
return params
}