mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
17 lines
282 B
Go
17 lines
282 B
Go
package application
|
|
|
|
import (
|
|
"mayfly-go/internal/auth/infrastructure/persistence"
|
|
"mayfly-go/pkg/ioc"
|
|
)
|
|
|
|
func init() {
|
|
persistence.Init()
|
|
|
|
ioc.Register(new(oauth2AppImpl), ioc.WithComponentName("Oauth2App"))
|
|
}
|
|
|
|
func GetAuthApp() Oauth2 {
|
|
return ioc.Get[Oauth2]("Oauth2App")
|
|
}
|