* model -> public/model * plugin -> public/plugin * public/model/utils -> public/utils * platform/shared/mlog -> public/shared/mlog * platform/shared/i18n -> public/shared/i18n * platform/shared/markdown -> public/shared/markdown * platform/services/timezones -> public/shared/timezones * channels/einterfaces -> einterfaces * expose public/ submodule * go mod tidy * .github: cache-dependency-path, setup-go-work * modules-tidy for public/ too * remove old gomodtidy
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,
|
|
}
|
|
}
|