This commit is contained in:
2026-08-15 01:28:51 +08:00
parent 6698e59c3a
commit 2f165d3a45
26 changed files with 242 additions and 216 deletions
+6 -7
View File
@@ -7,16 +7,15 @@ import (
"kra/internal/conf"
)
type SystemService struct {
uc *biz.SystemUsecase
runtime *conf.Runtime
settings *SettingsService
type SystemConfigService struct {
uc *biz.SystemConfigUsecase
runtime *conf.Runtime
}
func NewSystemService(uc *biz.SystemUsecase, runtime *conf.Runtime, settings *SettingsService) *SystemService {
return &SystemService{uc: uc, runtime: runtime, settings: settings}
func NewSystemConfigService(uc *biz.SystemConfigUsecase, runtime *conf.Runtime) *SystemConfigService {
return &SystemConfigService{uc: uc, runtime: runtime}
}
func (s *SystemService) IsInitialized(ctx context.Context) (bool, error) {
func (s *SystemConfigService) IsInitialized(ctx context.Context) (bool, error) {
return s.uc.IsInitialized(ctx)
}