refactor: ioc与系统初始化处理方式调整

This commit is contained in:
meilin.huang
2024-01-22 11:35:28 +08:00
parent de5b9e46d3
commit 9efd20f1b9
26 changed files with 257 additions and 55 deletions

View File

@@ -5,7 +5,7 @@ import (
"mayfly-go/pkg/ioc"
)
func init() {
func InitIoc() {
persistence.Init()
ioc.Register(new(machineAppImpl), ioc.WithComponentName("MachineApp"))