[feat] add NewBaseController func
This commit is contained in:
parent
56a3ee4a9a
commit
310ef2d2c8
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user