[feat] 添加 Service.RegControllers Service.RegListens 方法

This commit is contained in:
what 2023-04-25 15:08:45 +08:00
parent e5bc08a4f5
commit 2c1a864de4

View File

@ -2,6 +2,8 @@ package contracts
type Service interface {
LoadGoPlugin(file string) error
RegControllers(items map[string]Controller) error
RegListens(items map[string]ResListener) error
GetResListener(code string) (ResListener, bool)
GetAppController(code string) (Controller, bool)
}