Files
mayfly-go/server/internal/sys/application/application.go
2026-02-01 13:35:23 +08:00

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]()
}