Files
kra-oa/internal/service/system.go
T

23 lines
493 B
Go

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