重构: 各类型 Controller 接口精简,配合 framework-v2 internal/handler 收拢公共实现

app.go/condflow.go/cron.go/event_stream.go/executor.go/gobridge.go/grpc.go/job.go/mcp.go/mqtt.go/res_virtual_table.go/ws.go/controller.go/support/service.go 精简掉搬到 framework-v2 internal/handler 里的公共默认实现,只保留接口定义。
This commit is contained in:
2026-07-22 09:14:57 +08:00
parent e14aee1498
commit 8b122816a1
14 changed files with 96 additions and 312 deletions
+3 -3
View File
@@ -21,10 +21,10 @@ func GoPluginCore(core string, services ...any) {
} else if fn, ok := f.(func(map[string]contracts.Controller) error); ok {
fn(s)
}
case map[string]contracts.ResListener:
if f, err := p.Lookup("RegListens"); err != nil {
case map[string]contracts.ResWatcher:
if f, err := p.Lookup("RegResWatchers"); err != nil {
panic(err)
} else if fn, ok := f.(func(map[string]contracts.ResListener) error); ok {
} else if fn, ok := f.(func(map[string]contracts.ResWatcher) error); ok {
fn(s)
}
case map[string]contracts.GRpc: