MM-13740 Add additional plugin APIs for NPS plugin (#10431)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
434d01a284
Коммит
dc94e660d1
@@ -98,10 +98,22 @@ func (api *PluginAPI) SavePluginConfig(pluginConfig map[string]interface{}) *mod
|
||||
return api.app.SaveConfig(cfg, true)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetLicense() *model.License {
|
||||
return api.app.License()
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetServerVersion() string {
|
||||
return model.CurrentVersion
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetSystemInstallDate() (int64, *model.AppError) {
|
||||
return api.app.getSystemInstallDate()
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetDiagnosticId() string {
|
||||
return api.app.DiagnosticId()
|
||||
}
|
||||
|
||||
func (api *PluginAPI) CreateTeam(team *model.Team) (*model.Team, *model.AppError) {
|
||||
return api.app.CreateTeam(team)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user