add user management functionality with OTP verification and consent handling, DI introduced

This commit is contained in:
2025-08-10 10:38:49 +03:00
parent 6a9061a3de
commit 5d80a68b44
30 changed files with 828 additions and 528 deletions

20
internal/api/auth/fx.go Normal file
View File

@ -0,0 +1,20 @@
package auth
import (
"git.logidex.ru/fakz9/logidex-id/internal/api/auth/handler"
"git.logidex.ru/fakz9/logidex-id/internal/api/auth/repo"
"git.logidex.ru/fakz9/logidex-id/internal/api/auth/service"
"github.com/gofiber/fiber/v2"
"go.uber.org/fx"
)
var Module = fx.Options(
fx.Provide(
repo.NewAuthRepo,
service.NewAuthService,
handler.NewAuthHandler,
),
fx.Invoke(func(handler *handler.AuthHandler, router fiber.Router) {
handler.RegisterRoutes(router)
}),
)