Added API to return user count bands and user count (#25796)

Этот коммит содержится в:
Harshil Sharma
2023-12-21 18:30:19 +05:30
коммит произвёл GitHub
родитель cac50f593b
Коммит a59f5ccded
13 изменённых файлов: 329 добавлений и 0 удалений

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
}