feat: 重构事件处理,添加默认通道和发布逻辑,移除不必要的提供者

This commit is contained in:
Rogee
2025-09-11 14:51:40 +08:00
parent ced4202dc9
commit c0d8f070e4
14 changed files with 266 additions and 193 deletions

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"{{.ModuleName}}/app/events"
"{{.ModuleName}}/providers/event"
"go.ipao.vip/atom/contracts"
)
@@ -11,6 +12,8 @@ import (
var _ contracts.EventPublisher = (*{{.Name}}Event)(nil)
type {{.Name}}Event struct {
event.DefaultChannel
ID int64 `json:"id"`
}