Files
mayfly-go/server/internal/auth/application/application.go

17 lines
285 B
Go
Raw Normal View History

2023-07-22 20:51:46 +08:00
package application
2024-01-21 22:52:20 +08:00
import (
"mayfly-go/internal/auth/infrastructure/persistence"
"mayfly-go/pkg/ioc"
2023-07-22 20:51:46 +08:00
)
func InitIoc() {
2024-01-21 22:52:20 +08:00
persistence.Init()
ioc.Register(new(oauth2AppImpl), ioc.WithComponentName("Oauth2App"))
}
2023-07-22 20:51:46 +08:00
func GetAuthApp() Oauth2 {
2024-01-21 22:52:20 +08:00
return ioc.Get[Oauth2]("Oauth2App")
2023-07-22 20:51:46 +08:00
}