MM-16500: Adds ability to retrieve the total count of teams via the API. (#11325)
Этот коммит содержится в:
коммит произвёл
Miguel de la Cruz
родитель
49d5037a89
Коммит
c07b7046ca
@@ -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
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user