MM-13740 Add additional plugin APIs for NPS plugin (#10431)

Этот коммит содержится в:
Harrison Healey
2019-03-13 12:31:47 -04:00
коммит произвёл Christopher Speller
родитель 434d01a284
Коммит dc94e660d1
4 изменённых файлов: 184 добавлений и 29 удалений

Просмотреть файл

@@ -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)
}