优化结构
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kra/internal/biz/system"
|
||||
)
|
||||
|
||||
type SystemConfigService struct {
|
||||
uc *system.SystemConfigUsecase
|
||||
settings system.RuntimeSettings
|
||||
}
|
||||
|
||||
func NewSystemConfigService(uc *system.SystemConfigUsecase, settings system.RuntimeSettings) *SystemConfigService {
|
||||
return &SystemConfigService{uc: uc, settings: settings}
|
||||
}
|
||||
|
||||
func (s *SystemConfigService) IsInitialized(ctx context.Context) (bool, error) {
|
||||
return s.uc.IsInitialized(ctx)
|
||||
}
|
||||
Reference in New Issue
Block a user