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

17 lines
265 B
Go
Raw Normal View History

2023-07-03 21:42:04 +08:00
package application
import (
"mayfly-go/internal/msg/infrastructure/persistence"
2024-01-21 22:52:20 +08:00
"mayfly-go/pkg/ioc"
2023-07-03 21:42:04 +08:00
)
2024-01-21 22:52:20 +08:00
func init() {
persistence.Init()
ioc.Register(new(msgAppImpl), ioc.WithComponentName("MsgApp"))
}
2023-07-03 21:42:04 +08:00
func GetMsgApp() Msg {
2024-01-21 22:52:20 +08:00
return ioc.Get[Msg]("MsgApp")
2023-07-03 21:42:04 +08:00
}