优化
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user