You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cls/internal/modules/auth_module.go

24 lines
514 B
Go

package modules
import (
appAuth "cls/internal/application/auth"
"cls/internal/application/crypto"
"cls/internal/infrastructure/persistence/auth"
"cls/internal/interfaces"
handle "cls/internal/interfaces/auth"
"go.uber.org/fx"
)
var AuthModule = fx.Module("AuthModule",
fx.Provide(
interfaces.AsHandler(handle.NewAuthHandler),
),
fx.Provide(
appAuth.NewCaptchaService,
auth.NewAuthRepositoryORM,
crypto.NewPasswordHashService,
crypto.NewPhoneEncryptionService,
appAuth.NewAuthService,
),
)