feat 模块删除bind函数

This commit is contained in:
2026-02-06 22:51:47 +08:00
parent 44ebbe4449
commit 5a0f4b71d4
6 changed files with 22 additions and 83 deletions

View File

@@ -9,7 +9,6 @@ type Module interface {
Start(ready *sync.WaitGroup) error // 启动
AfterStart() error // 启动之后
Stop() error // 停止
Bind(data ...any) Module // 绑定数据
}
type DefaultModule struct {
@@ -31,7 +30,3 @@ func (m *DefaultModule) AfterStart() error {
func (m *DefaultModule) Stop() error {
return nil
}
func (m *DefaultModule) Bind(_ ...any) Module {
return m
}