重构: 各类型 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:
@@ -9,14 +9,5 @@ type GoBridgeService interface {
|
||||
// GoBridge 继承 Controller,可通过 gobridge.WithHandlers 绑定到 Pool,
|
||||
// 所有公开方法自动暴露给 Python 通过 call_go() 调用。
|
||||
type GoBridge interface {
|
||||
_gobridge_handler()
|
||||
Controller
|
||||
}
|
||||
|
||||
// GoBridgeBase 嵌入到用户 struct 以实现 GoBridge 接口
|
||||
type GoBridgeBase struct {
|
||||
Controller
|
||||
}
|
||||
|
||||
// _gobridge_handler 签名函数
|
||||
func (bb *GoBridgeBase) _gobridge_handler() {}
|
||||
|
||||
Reference in New Issue
Block a user