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