Add system service for Focalboard multi product architecture (#20574)

* add system service; add GetUsers to users service
* add feature flag
Этот коммит содержится в:
Doug Lauder
2022-07-05 08:13:02 -04:00
коммит произвёл GitHub
родитель 717a4d04a9
Коммит 9cbe7dac09
5 изменённых файлов: 27 добавлений и 4 удалений

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

@@ -173,3 +173,12 @@ func (a *App) SetServer(srv *Server) {
func (a *App) UpdateExpiredDNDStatuses() ([]*model.Status, error) {
return a.Srv().Store.Status().UpdateExpiredDNDStatuses()
}
// systemServiceAdapter provides a collection of system APIs for use by products.
type systemServiceAdapter struct {
server *Server
}
func (ssa *systemServiceAdapter) GetDiagnosticId() string {
return ssa.server.TelemetryId()
}