feat: 重构事件处理,添加默认通道和发布逻辑,移除不必要的提供者
This commit is contained in:
@@ -35,7 +35,7 @@ func Provide(opts ...opt.Option) error {
|
||||
{{- end }}
|
||||
|
||||
{{- if eq .Mode "event"}}
|
||||
__event.Handle("handler:{{.StructName}}", obj.Topic(), obj.PublishToTopic(), obj.Handler)
|
||||
__event.Handle("handler:{{.StructName}}", obj)
|
||||
{{- end }}
|
||||
|
||||
{{- if eq .Mode "job"}}
|
||||
|
||||
Reference in New Issue
Block a user