|
|
@ -47,6 +47,7 @@ type ApprovalClient interface {
|
|
|
|
UpdateType(ctx context.Context, in *CreateTypeRequest, opts ...grpc_go.CallOption) (*TypeResponse, common.ErrorWithAttachment)
|
|
|
|
UpdateType(ctx context.Context, in *CreateTypeRequest, opts ...grpc_go.CallOption) (*TypeResponse, common.ErrorWithAttachment)
|
|
|
|
AllType(ctx context.Context, in *CommonRequest, opts ...grpc_go.CallOption) (*AllTypeResponse, common.ErrorWithAttachment)
|
|
|
|
AllType(ctx context.Context, in *CommonRequest, opts ...grpc_go.CallOption) (*AllTypeResponse, common.ErrorWithAttachment)
|
|
|
|
RemoveType(ctx context.Context, in *RemoveRequest, opts ...grpc_go.CallOption) (*StatusResponse, common.ErrorWithAttachment)
|
|
|
|
RemoveType(ctx context.Context, in *RemoveRequest, opts ...grpc_go.CallOption) (*StatusResponse, common.ErrorWithAttachment)
|
|
|
|
|
|
|
|
AllGroup(ctx context.Context, in *CommonRequest, opts ...grpc_go.CallOption) (*AllGroupResponse, common.ErrorWithAttachment)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type approvalClient struct {
|
|
|
|
type approvalClient struct {
|
|
|
@ -73,6 +74,7 @@ type ApprovalClientImpl struct {
|
|
|
|
UpdateType func(ctx context.Context, in *CreateTypeRequest) (*TypeResponse, error)
|
|
|
|
UpdateType func(ctx context.Context, in *CreateTypeRequest) (*TypeResponse, error)
|
|
|
|
AllType func(ctx context.Context, in *CommonRequest) (*AllTypeResponse, error)
|
|
|
|
AllType func(ctx context.Context, in *CommonRequest) (*AllTypeResponse, error)
|
|
|
|
RemoveType func(ctx context.Context, in *RemoveRequest) (*StatusResponse, error)
|
|
|
|
RemoveType func(ctx context.Context, in *RemoveRequest) (*StatusResponse, error)
|
|
|
|
|
|
|
|
AllGroup func(ctx context.Context, in *CommonRequest) (*AllGroupResponse, error)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (c *ApprovalClientImpl) GetDubboStub(cc *triple.TripleConn) ApprovalClient {
|
|
|
|
func (c *ApprovalClientImpl) GetDubboStub(cc *triple.TripleConn) ApprovalClient {
|
|
|
@ -201,6 +203,12 @@ func (c *approvalClient) RemoveType(ctx context.Context, in *RemoveRequest, opts
|
|
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/RemoveType", in, out)
|
|
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/RemoveType", in, out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (c *approvalClient) AllGroup(ctx context.Context, in *CommonRequest, opts ...grpc_go.CallOption) (*AllGroupResponse, common.ErrorWithAttachment) {
|
|
|
|
|
|
|
|
out := new(AllGroupResponse)
|
|
|
|
|
|
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
|
|
|
|
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/AllGroup", in, out)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ApprovalServer is the server API for Approval service.
|
|
|
|
// ApprovalServer is the server API for Approval service.
|
|
|
|
// All implementations must embed UnimplementedApprovalServer
|
|
|
|
// All implementations must embed UnimplementedApprovalServer
|
|
|
|
// for forward compatibility
|
|
|
|
// for forward compatibility
|
|
|
@ -224,6 +232,7 @@ type ApprovalServer interface {
|
|
|
|
UpdateType(context.Context, *CreateTypeRequest) (*TypeResponse, error)
|
|
|
|
UpdateType(context.Context, *CreateTypeRequest) (*TypeResponse, error)
|
|
|
|
AllType(context.Context, *CommonRequest) (*AllTypeResponse, error)
|
|
|
|
AllType(context.Context, *CommonRequest) (*AllTypeResponse, error)
|
|
|
|
RemoveType(context.Context, *RemoveRequest) (*StatusResponse, error)
|
|
|
|
RemoveType(context.Context, *RemoveRequest) (*StatusResponse, error)
|
|
|
|
|
|
|
|
AllGroup(context.Context, *CommonRequest) (*AllGroupResponse, error)
|
|
|
|
mustEmbedUnimplementedApprovalServer()
|
|
|
|
mustEmbedUnimplementedApprovalServer()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -289,6 +298,9 @@ func (UnimplementedApprovalServer) AllType(context.Context, *CommonRequest) (*Al
|
|
|
|
func (UnimplementedApprovalServer) RemoveType(context.Context, *RemoveRequest) (*StatusResponse, error) {
|
|
|
|
func (UnimplementedApprovalServer) RemoveType(context.Context, *RemoveRequest) (*StatusResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RemoveType not implemented")
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RemoveType not implemented")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (UnimplementedApprovalServer) AllGroup(context.Context, *CommonRequest) (*AllGroupResponse, error) {
|
|
|
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method AllGroup not implemented")
|
|
|
|
|
|
|
|
}
|
|
|
|
func (s *UnimplementedApprovalServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
|
|
|
func (s *UnimplementedApprovalServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
|
|
|
s.proxyImpl = impl
|
|
|
|
s.proxyImpl = impl
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -868,6 +880,35 @@ func _Approval_RemoveType_Handler(srv interface{}, ctx context.Context, dec func
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _Approval_AllGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
|
|
|
in := new(CommonRequest)
|
|
|
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
base := srv.(dubbo3.Dubbo3GrpcService)
|
|
|
|
|
|
|
|
args := []interface{}{}
|
|
|
|
|
|
|
|
args = append(args, in)
|
|
|
|
|
|
|
|
md, _ := metadata.FromIncomingContext(ctx)
|
|
|
|
|
|
|
|
invAttachment := make(map[string]interface{}, len(md))
|
|
|
|
|
|
|
|
for k, v := range md {
|
|
|
|
|
|
|
|
invAttachment[k] = v
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
invo := invocation.NewRPCInvocation("AllGroup", args, invAttachment)
|
|
|
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
|
|
|
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
|
|
|
|
|
|
|
return result, result.Error()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
info := &grpc_go.UnaryServerInfo{
|
|
|
|
|
|
|
|
Server: srv,
|
|
|
|
|
|
|
|
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
|
|
|
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
|
|
|
|
|
|
|
return result, result.Error()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Approval_ServiceDesc is the grpc_go.ServiceDesc for Approval service.
|
|
|
|
// Approval_ServiceDesc is the grpc_go.ServiceDesc for Approval service.
|
|
|
|
// It's only intended for direct use with grpc_go.RegisterService,
|
|
|
|
// It's only intended for direct use with grpc_go.RegisterService,
|
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
|
@ -951,6 +992,10 @@ var Approval_ServiceDesc = grpc_go.ServiceDesc{
|
|
|
|
MethodName: "RemoveType",
|
|
|
|
MethodName: "RemoveType",
|
|
|
|
Handler: _Approval_RemoveType_Handler,
|
|
|
|
Handler: _Approval_RemoveType_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MethodName: "AllGroup",
|
|
|
|
|
|
|
|
Handler: _Approval_AllGroup_Handler,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc_go.StreamDesc{},
|
|
|
|
Streams: []grpc_go.StreamDesc{},
|
|
|
|
Metadata: "api/approval/approval.proto",
|
|
|
|
Metadata: "api/approval/approval.proto",
|
|
|
|