From 5f1a570f09494b7a08bb339a48421cb647bab796 Mon Sep 17 00:00:00 2001 From: what Date: Mon, 22 May 2023 13:26:49 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=96=B0=E5=A2=9E=20GRpController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controller.go b/controller.go index e8a8f29..f346a1f 100644 --- a/controller.go +++ b/controller.go @@ -4,6 +4,7 @@ import ( "net/http" "github.com/samber/do" + "google.golang.org/grpc" ) type Controller interface { @@ -15,6 +16,10 @@ type Controller interface { Call(code string, params map[string]any, category ...RouteCategory) (HttpResponse, error) } +type GRpController interface { + GetGRpcServiceDesc() grpc.ServiceDesc +} + type BaseController struct { User User Container *do.Injector