https://mattermost.atlassian.net/browse/MM-52079 ```release-note We upgrade the module version to 8.0. The new module path is github.com/mattermost-server/server/v8. ``` Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
46 строки
1.5 KiB
Go
46 строки
1.5 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
import "strings"
|
|
|
|
type TrueUpReviewProfile struct {
|
|
ServerId string `json:"server_id"`
|
|
ServerVersion string `json:"server_version"`
|
|
ServerInstallationType string `json:"server_installation_type"`
|
|
LicenseId string `json:"license_id"`
|
|
LicensedSeats int `json:"licensed_seats"`
|
|
LicensePlan string `json:"license_plan"`
|
|
CustomerName string `json:"customer_name"`
|
|
ActiveUsers int64 `json:"active_users"`
|
|
AuthenticationFeatures []string `json:"authentication_features"`
|
|
Plugins TrueUpReviewPlugins `json:"plugins"`
|
|
TotalIncomingWebhooks int64 `json:"incoming_webhooks_count"`
|
|
TotalOutgoingWebhooks int64 `json:"outgoing_webhooks_count"`
|
|
}
|
|
|
|
type TrueUpReviewPlugins struct {
|
|
TotalPlugins int `json:"total_plugins"`
|
|
PluginNames []string `json:"plugin_names"`
|
|
}
|
|
|
|
func (t *TrueUpReviewPlugins) ToMap() map[string]interface{} {
|
|
return map[string]interface{}{
|
|
"total_plugins": t.TotalPlugins,
|
|
"plugin_names": strings.Join(t.PluginNames, ","),
|
|
}
|
|
}
|
|
|
|
type TrueUpReviewStatus struct {
|
|
Completed bool `json:"complete"`
|
|
DueDate int64 `json:"due_date"`
|
|
}
|
|
|
|
func (t *TrueUpReviewStatus) ToSlice() []interface{} {
|
|
return []interface{}{
|
|
t.DueDate,
|
|
t.Completed,
|
|
}
|
|
}
|