[feat] 新增 GRpController
This commit is contained in:
parent
3d522f44dc
commit
5f1a570f09
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user