From 310ef2d2c8f8daf49013bebd1d9fec8672ddd611 Mon Sep 17 00:00:00 2001 From: what Date: Mon, 5 Jun 2023 14:46:25 +0800 Subject: [PATCH] [feat] add NewBaseController func --- controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller.go b/controller.go index 2cd328b..23845fc 100644 --- a/controller.go +++ b/controller.go @@ -129,6 +129,10 @@ func (GRpcBaseController) GetGRpcServiceDesc() *grpc.ServiceDesc { return nil } +func NewBaseController(container *do.Injector) Controller { + return &BaseController{container} +} + func NewHttpBaseController(container *do.Injector, request *http.Request) HttpController { return &HttpBaseController{ Controller: &BaseController{container},