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/user_module.go

21 lines
415 B
Go

package modules
import (
service "cls/internal/application/user"
repo "cls/internal/infrastructure/persistence/user"
"cls/internal/interfaces"
"cls/internal/interfaces/user"
"go.uber.org/fx"
)
var UserModule = fx.Module("UserModule",
fx.Provide(
interfaces.AsHandler(user.NewUserHandler),
),
fx.Provide(
service.NewUserService,
repo.NewUserRepositoryORM,
repo.NewUserAggregateRepositoryORM,
),
)