Files
mayfly-go/server/internal/auth/application/application.go
2024-01-22 11:35:28 +08:00

17 lines
285 B
Go

package application
import (
"mayfly-go/internal/auth/infrastructure/persistence"
"mayfly-go/pkg/ioc"
)
func InitIoc() {
persistence.Init()
ioc.Register(new(oauth2AppImpl), ioc.WithComponentName("Oauth2App"))
}
func GetAuthApp() Oauth2 {
return ioc.Get[Oauth2]("Oauth2App")
}