mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-02-26 14:15:37 +08:00
feat: redis支持工单流程审批
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
package application
|
||||
|
||||
import (
|
||||
"mayfly-go/internal/msg/infrastructure/persistence"
|
||||
"mayfly-go/pkg/ioc"
|
||||
)
|
||||
|
||||
func InitIoc() {
|
||||
persistence.Init()
|
||||
|
||||
ioc.Register(new(msgAppImpl), ioc.WithComponentName("MsgApp"))
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,6 @@ import (
|
||||
"mayfly-go/pkg/ioc"
|
||||
)
|
||||
|
||||
func Init() {
|
||||
func InitIoc() {
|
||||
ioc.Register(newMsgRepo(), ioc.WithComponentName("MsgRepo"))
|
||||
}
|
||||
|
||||
@@ -3,10 +3,14 @@ package init
|
||||
import (
|
||||
"mayfly-go/initialize"
|
||||
"mayfly-go/internal/msg/application"
|
||||
"mayfly-go/internal/msg/infrastructure/persistence"
|
||||
"mayfly-go/internal/msg/router"
|
||||
)
|
||||
|
||||
func init() {
|
||||
initialize.AddInitIocFunc(application.InitIoc)
|
||||
initialize.AddInitIocFunc(func() {
|
||||
persistence.InitIoc()
|
||||
application.InitIoc()
|
||||
})
|
||||
initialize.AddInitRouterFunc(router.Init)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user