refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"bsm/full/module/ec/delivery/external/pb/delivery"
|
||||
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
"bsm/full/shared/grpcconn"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
@@ -40,11 +40,11 @@ type (
|
||||
}
|
||||
|
||||
defaultTeam struct {
|
||||
cli zrpc.Client
|
||||
cli grpcconn.Provider
|
||||
}
|
||||
)
|
||||
|
||||
func NewTeam(cli zrpc.Client) Team {
|
||||
func NewTeam(cli grpcconn.Provider) Team {
|
||||
return &defaultTeam{
|
||||
cli: cli,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user