From 2c1a864de458412cb0dfe0bc4c34212f1ab1c737 Mon Sep 17 00:00:00 2001 From: what Date: Tue, 25 Apr 2023 15:08:45 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=B7=BB=E5=8A=A0=20Service.RegContro?= =?UTF-8?q?llers=20Service.RegListens=20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service.go b/service.go index f2281d5..a7e19db 100644 --- a/service.go +++ b/service.go @@ -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) }