mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-02-02 02:45:48 +08:00
26 lines
421 B
Go
26 lines
421 B
Go
package application
|
|
|
|
import (
|
|
"mayfly-go/pkg/ioc"
|
|
)
|
|
|
|
func InitIoc() {
|
|
ioc.Register(new(accountAppImpl))
|
|
ioc.Register(new(roleAppImpl))
|
|
ioc.Register(new(configAppImpl))
|
|
ioc.Register(new(resourceAppImpl))
|
|
ioc.Register(new(syslogAppImpl))
|
|
}
|
|
|
|
func GetAccountApp() Account {
|
|
return ioc.Get[Account]()
|
|
}
|
|
|
|
func GetConfigApp() Config {
|
|
return ioc.Get[Config]()
|
|
}
|
|
|
|
func GetSyslogApp() Syslog {
|
|
return ioc.Get[Syslog]()
|
|
}
|