22 lines
452 B
Go
22 lines
452 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"kra/internal/biz"
|
|
"kra/internal/conf"
|
|
)
|
|
|
|
type SystemConfigService struct {
|
|
uc *biz.SystemConfigUsecase
|
|
runtime *conf.Runtime
|
|
}
|
|
|
|
func NewSystemConfigService(uc *biz.SystemConfigUsecase, runtime *conf.Runtime) *SystemConfigService {
|
|
return &SystemConfigService{uc: uc, runtime: runtime}
|
|
}
|
|
|
|
func (s *SystemConfigService) IsInitialized(ctx context.Context) (bool, error) {
|
|
return s.uc.IsInitialized(ctx)
|
|
}
|