kra-new/internal/service/system.go

23 lines
486 B
Go

package service
import (
"context"
"kra/internal/biz"
"kra/internal/conf"
)
type SystemService struct {
uc *biz.SystemUsecase
runtime *conf.Runtime
settings *SettingsService
}
func NewSystemService(uc *biz.SystemUsecase, runtime *conf.Runtime, settings *SettingsService) *SystemService {
return &SystemService{uc: uc, runtime: runtime, settings: settings}
}
func (s *SystemService) IsInitialized(ctx context.Context) (bool, error) {
return s.uc.IsInitialized(ctx)
}