Added API to return user count bands and user count (#25796)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
cac50f593b
Коммит
a59f5ccded
11
server/public/model/limits.go
Обычный файл
11
server/public/model/limits.go
Обычный файл
@@ -0,0 +1,11 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
package model
|
||||
|
||||
type UserLimits struct {
|
||||
MaxUsersLimit int64 `json:"maxUsersLimit"` // max number of users allowed
|
||||
LowerBandUserLimit int64 `json:"lowerBandUserLimit"` // user count for 1st warning
|
||||
UpperBandUserLimit int64 `json:"upperBandUserLimit"` // user count for 2nd warning
|
||||
ActiveUserCount int64 `json:"activeUserCount"` // actual number of active users on server. Active = non deleted
|
||||
}
|
||||
Ссылка в новой задаче
Block a user