feat: add kyc layer service

This commit is contained in:
2025-09-14 16:17:29 +03:30
parent 667d2ce2f4
commit 2da912739b
6 changed files with 159 additions and 59 deletions
+4 -1
View File
@@ -8,6 +8,7 @@ import (
"backend/internal/usecase"
cachePackage "backend/pkg/cache"
"backend/pkg/postgres"
"backend/pkg/zohal"
"fmt"
"log"
@@ -43,13 +44,15 @@ func NewAppContainer(cfg config.Config) (*AppContainer, error) {
userRepo := storage.NewUserRepository(dbConn)
sessionRepo := cache.NewSessionRepository(redis)
challengeRepo := cache.NewChallengeRepository(redis)
zohal := zohal.NewZohal(cfg.KYCProvider)
authService := usecase.NewAuthService(
userRepo,
sessionRepo,
challengeRepo,
30,
cfg.JWT,
zohal,
cfg,
)
return &AppContainer{