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},