// Code generated by protoc-gen-go-triple. DO NOT EDIT. // versions: // - protoc-gen-go-triple v1.0.8 // - protoc v5.29.2 // source: pb/bundle.proto package bundle import ( context "context" protocol "dubbo.apache.org/dubbo-go/v3/protocol" dubbo3 "dubbo.apache.org/dubbo-go/v3/protocol/dubbo3" invocation "dubbo.apache.org/dubbo-go/v3/protocol/invocation" grpc_go "github.com/dubbogo/grpc-go" codes "github.com/dubbogo/grpc-go/codes" metadata "github.com/dubbogo/grpc-go/metadata" status "github.com/dubbogo/grpc-go/status" common "github.com/dubbogo/triple/pkg/common" constant "github.com/dubbogo/triple/pkg/common/constant" triple "github.com/dubbogo/triple/pkg/triple" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc_go.SupportPackageIsVersion7 // BundleClient is the client API for Bundle service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type BundleClient interface { CreateBundle(ctx context.Context, in *BundleProfile, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) UpdateBundle(ctx context.Context, in *BundleProfile, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) DeleteBundle(ctx context.Context, in *DelBundleRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) BundleList(ctx context.Context, in *BundleListRequest, opts ...grpc_go.CallOption) (*BundleListResponse, common.ErrorWithAttachment) BundleDetail(ctx context.Context, in *BundleDetailRequest, opts ...grpc_go.CallOption) (*BundleDetailResponse, common.ErrorWithAttachment) CreateOrderRecord(ctx context.Context, in *OrderRecord, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) UpdateOrderRecord(ctx context.Context, in *OrderRecord, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) UpdateOrderRecordByOrderNo(ctx context.Context, in *OrderRecord, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) OrderRecordsList(ctx context.Context, in *OrderRecordsRequest, opts ...grpc_go.CallOption) (*OrderRecordsResponse, common.ErrorWithAttachment) OrderRecordsDetail(ctx context.Context, in *OrderRecordsDetailRequest, opts ...grpc_go.CallOption) (*OrderRecordsDetailResponse, common.ErrorWithAttachment) //增值套餐 CreateValueAddBundle(ctx context.Context, in *ValueAddBundleProfile, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) UpdateValueAddBundle(ctx context.Context, in *ValueAddBundleProfile, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) DeleteValueAddBundle(ctx context.Context, in *DelValueAddBundleRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) ValueAddBundleList(ctx context.Context, in *ValueAddBundleListRequest, opts ...grpc_go.CallOption) (*ValueAddBundleListResponse, common.ErrorWithAttachment) ValueAddBundleDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) ValueAddBundleRecordDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) } type bundleClient struct { cc *triple.TripleConn } type BundleClientImpl struct { CreateBundle func(ctx context.Context, in *BundleProfile) (*CommonResponse, error) UpdateBundle func(ctx context.Context, in *BundleProfile) (*CommonResponse, error) DeleteBundle func(ctx context.Context, in *DelBundleRequest) (*CommonResponse, error) BundleList func(ctx context.Context, in *BundleListRequest) (*BundleListResponse, error) BundleDetail func(ctx context.Context, in *BundleDetailRequest) (*BundleDetailResponse, error) CreateOrderRecord func(ctx context.Context, in *OrderRecord) (*CommonResponse, error) UpdateOrderRecord func(ctx context.Context, in *OrderRecord) (*CommonResponse, error) UpdateOrderRecordByOrderNo func(ctx context.Context, in *OrderRecord) (*CommonResponse, error) OrderRecordsList func(ctx context.Context, in *OrderRecordsRequest) (*OrderRecordsResponse, error) OrderRecordsDetail func(ctx context.Context, in *OrderRecordsDetailRequest) (*OrderRecordsDetailResponse, error) CreateValueAddBundle func(ctx context.Context, in *ValueAddBundleProfile) (*CommonResponse, error) UpdateValueAddBundle func(ctx context.Context, in *ValueAddBundleProfile) (*CommonResponse, error) DeleteValueAddBundle func(ctx context.Context, in *DelValueAddBundleRequest) (*CommonResponse, error) ValueAddBundleList func(ctx context.Context, in *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error) ValueAddBundleDetail func(ctx context.Context, in *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) ValueAddBundleRecordDetail func(ctx context.Context, in *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) } func (c *BundleClientImpl) GetDubboStub(cc *triple.TripleConn) BundleClient { return NewBundleClient(cc) } func (c *BundleClientImpl) XXX_InterfaceName() string { return "bundle.Bundle" } func NewBundleClient(cc *triple.TripleConn) BundleClient { return &bundleClient{cc} } func (c *bundleClient) CreateBundle(ctx context.Context, in *BundleProfile, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CreateBundle", in, out) } func (c *bundleClient) UpdateBundle(ctx context.Context, in *BundleProfile, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateBundle", in, out) } func (c *bundleClient) DeleteBundle(ctx context.Context, in *DelBundleRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DeleteBundle", in, out) } func (c *bundleClient) BundleList(ctx context.Context, in *BundleListRequest, opts ...grpc_go.CallOption) (*BundleListResponse, common.ErrorWithAttachment) { out := new(BundleListResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BundleList", in, out) } func (c *bundleClient) BundleDetail(ctx context.Context, in *BundleDetailRequest, opts ...grpc_go.CallOption) (*BundleDetailResponse, common.ErrorWithAttachment) { out := new(BundleDetailResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BundleDetail", in, out) } func (c *bundleClient) CreateOrderRecord(ctx context.Context, in *OrderRecord, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CreateOrderRecord", in, out) } func (c *bundleClient) UpdateOrderRecord(ctx context.Context, in *OrderRecord, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateOrderRecord", in, out) } func (c *bundleClient) UpdateOrderRecordByOrderNo(ctx context.Context, in *OrderRecord, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateOrderRecordByOrderNo", in, out) } func (c *bundleClient) OrderRecordsList(ctx context.Context, in *OrderRecordsRequest, opts ...grpc_go.CallOption) (*OrderRecordsResponse, common.ErrorWithAttachment) { out := new(OrderRecordsResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/OrderRecordsList", in, out) } func (c *bundleClient) OrderRecordsDetail(ctx context.Context, in *OrderRecordsDetailRequest, opts ...grpc_go.CallOption) (*OrderRecordsDetailResponse, common.ErrorWithAttachment) { out := new(OrderRecordsDetailResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/OrderRecordsDetail", in, out) } func (c *bundleClient) CreateValueAddBundle(ctx context.Context, in *ValueAddBundleProfile, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CreateValueAddBundle", in, out) } func (c *bundleClient) UpdateValueAddBundle(ctx context.Context, in *ValueAddBundleProfile, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateValueAddBundle", in, out) } func (c *bundleClient) DeleteValueAddBundle(ctx context.Context, in *DelValueAddBundleRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) { out := new(CommonResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DeleteValueAddBundle", in, out) } func (c *bundleClient) ValueAddBundleList(ctx context.Context, in *ValueAddBundleListRequest, opts ...grpc_go.CallOption) (*ValueAddBundleListResponse, common.ErrorWithAttachment) { out := new(ValueAddBundleListResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ValueAddBundleList", in, out) } func (c *bundleClient) ValueAddBundleDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) { out := new(ValueAddBundleDetailResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ValueAddBundleDetail", in, out) } func (c *bundleClient) ValueAddBundleRecordDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) { out := new(ValueAddBundleDetailResponse) interfaceKey := ctx.Value(constant.InterfaceKey).(string) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ValueAddBundleRecordDetail", in, out) } // BundleServer is the server API for Bundle service. // All implementations must embed UnimplementedBundleServer // for forward compatibility type BundleServer interface { CreateBundle(context.Context, *BundleProfile) (*CommonResponse, error) UpdateBundle(context.Context, *BundleProfile) (*CommonResponse, error) DeleteBundle(context.Context, *DelBundleRequest) (*CommonResponse, error) BundleList(context.Context, *BundleListRequest) (*BundleListResponse, error) BundleDetail(context.Context, *BundleDetailRequest) (*BundleDetailResponse, error) CreateOrderRecord(context.Context, *OrderRecord) (*CommonResponse, error) UpdateOrderRecord(context.Context, *OrderRecord) (*CommonResponse, error) UpdateOrderRecordByOrderNo(context.Context, *OrderRecord) (*CommonResponse, error) OrderRecordsList(context.Context, *OrderRecordsRequest) (*OrderRecordsResponse, error) OrderRecordsDetail(context.Context, *OrderRecordsDetailRequest) (*OrderRecordsDetailResponse, error) //增值套餐 CreateValueAddBundle(context.Context, *ValueAddBundleProfile) (*CommonResponse, error) UpdateValueAddBundle(context.Context, *ValueAddBundleProfile) (*CommonResponse, error) DeleteValueAddBundle(context.Context, *DelValueAddBundleRequest) (*CommonResponse, error) ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error) ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) ValueAddBundleRecordDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) mustEmbedUnimplementedBundleServer() } // UnimplementedBundleServer must be embedded to have forward compatible implementations. type UnimplementedBundleServer struct { proxyImpl protocol.Invoker } func (UnimplementedBundleServer) CreateBundle(context.Context, *BundleProfile) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateBundle not implemented") } func (UnimplementedBundleServer) UpdateBundle(context.Context, *BundleProfile) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateBundle not implemented") } func (UnimplementedBundleServer) DeleteBundle(context.Context, *DelBundleRequest) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteBundle not implemented") } func (UnimplementedBundleServer) BundleList(context.Context, *BundleListRequest) (*BundleListResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BundleList not implemented") } func (UnimplementedBundleServer) BundleDetail(context.Context, *BundleDetailRequest) (*BundleDetailResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BundleDetail not implemented") } func (UnimplementedBundleServer) CreateOrderRecord(context.Context, *OrderRecord) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateOrderRecord not implemented") } func (UnimplementedBundleServer) UpdateOrderRecord(context.Context, *OrderRecord) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateOrderRecord not implemented") } func (UnimplementedBundleServer) UpdateOrderRecordByOrderNo(context.Context, *OrderRecord) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateOrderRecordByOrderNo not implemented") } func (UnimplementedBundleServer) OrderRecordsList(context.Context, *OrderRecordsRequest) (*OrderRecordsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method OrderRecordsList not implemented") } func (UnimplementedBundleServer) OrderRecordsDetail(context.Context, *OrderRecordsDetailRequest) (*OrderRecordsDetailResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method OrderRecordsDetail not implemented") } func (UnimplementedBundleServer) CreateValueAddBundle(context.Context, *ValueAddBundleProfile) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateValueAddBundle not implemented") } func (UnimplementedBundleServer) UpdateValueAddBundle(context.Context, *ValueAddBundleProfile) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateValueAddBundle not implemented") } func (UnimplementedBundleServer) DeleteValueAddBundle(context.Context, *DelValueAddBundleRequest) (*CommonResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteValueAddBundle not implemented") } func (UnimplementedBundleServer) ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValueAddBundleList not implemented") } func (UnimplementedBundleServer) ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValueAddBundleDetail not implemented") } func (UnimplementedBundleServer) ValueAddBundleRecordDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValueAddBundleRecordDetail not implemented") } func (s *UnimplementedBundleServer) XXX_SetProxyImpl(impl protocol.Invoker) { s.proxyImpl = impl } func (s *UnimplementedBundleServer) XXX_GetProxyImpl() protocol.Invoker { return s.proxyImpl } func (s *UnimplementedBundleServer) XXX_ServiceDesc() *grpc_go.ServiceDesc { return &Bundle_ServiceDesc } func (s *UnimplementedBundleServer) XXX_InterfaceName() string { return "bundle.Bundle" } func (UnimplementedBundleServer) mustEmbedUnimplementedBundleServer() {} // UnsafeBundleServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BundleServer will // result in compilation errors. type UnsafeBundleServer interface { mustEmbedUnimplementedBundleServer() } func RegisterBundleServer(s grpc_go.ServiceRegistrar, srv BundleServer) { s.RegisterService(&Bundle_ServiceDesc, srv) } func _Bundle_CreateBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(BundleProfile) 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("CreateBundle", 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) } func _Bundle_UpdateBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(BundleProfile) 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("UpdateBundle", 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) } func _Bundle_DeleteBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(DelBundleRequest) 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("DeleteBundle", 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) } func _Bundle_BundleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(BundleListRequest) 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("BundleList", 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) } func _Bundle_BundleDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(BundleDetailRequest) 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("BundleDetail", 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) } func _Bundle_CreateOrderRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(OrderRecord) 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("CreateOrderRecord", 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) } func _Bundle_UpdateOrderRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(OrderRecord) 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("UpdateOrderRecord", 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) } func _Bundle_UpdateOrderRecordByOrderNo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(OrderRecord) 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("UpdateOrderRecordByOrderNo", 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) } func _Bundle_OrderRecordsList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(OrderRecordsRequest) 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("OrderRecordsList", 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) } func _Bundle_OrderRecordsDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(OrderRecordsDetailRequest) 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("OrderRecordsDetail", 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) } func _Bundle_CreateValueAddBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(ValueAddBundleProfile) 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("CreateValueAddBundle", 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) } func _Bundle_UpdateValueAddBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(ValueAddBundleProfile) 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("UpdateValueAddBundle", 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) } func _Bundle_DeleteValueAddBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(DelValueAddBundleRequest) 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("DeleteValueAddBundle", 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) } func _Bundle_ValueAddBundleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(ValueAddBundleListRequest) 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("ValueAddBundleList", 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) } func _Bundle_ValueAddBundleDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(ValueAddBundleDetailRequest) 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("ValueAddBundleDetail", 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) } func _Bundle_ValueAddBundleRecordDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(ValueAddBundleDetailRequest) 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("ValueAddBundleRecordDetail", 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) } // Bundle_ServiceDesc is the grpc_go.ServiceDesc for Bundle service. // It's only intended for direct use with grpc_go.RegisterService, // and not to be introspected or modified (even as a copy) var Bundle_ServiceDesc = grpc_go.ServiceDesc{ ServiceName: "bundle.Bundle", HandlerType: (*BundleServer)(nil), Methods: []grpc_go.MethodDesc{ { MethodName: "CreateBundle", Handler: _Bundle_CreateBundle_Handler, }, { MethodName: "UpdateBundle", Handler: _Bundle_UpdateBundle_Handler, }, { MethodName: "DeleteBundle", Handler: _Bundle_DeleteBundle_Handler, }, { MethodName: "BundleList", Handler: _Bundle_BundleList_Handler, }, { MethodName: "BundleDetail", Handler: _Bundle_BundleDetail_Handler, }, { MethodName: "CreateOrderRecord", Handler: _Bundle_CreateOrderRecord_Handler, }, { MethodName: "UpdateOrderRecord", Handler: _Bundle_UpdateOrderRecord_Handler, }, { MethodName: "UpdateOrderRecordByOrderNo", Handler: _Bundle_UpdateOrderRecordByOrderNo_Handler, }, { MethodName: "OrderRecordsList", Handler: _Bundle_OrderRecordsList_Handler, }, { MethodName: "OrderRecordsDetail", Handler: _Bundle_OrderRecordsDetail_Handler, }, { MethodName: "CreateValueAddBundle", Handler: _Bundle_CreateValueAddBundle_Handler, }, { MethodName: "UpdateValueAddBundle", Handler: _Bundle_UpdateValueAddBundle_Handler, }, { MethodName: "DeleteValueAddBundle", Handler: _Bundle_DeleteValueAddBundle_Handler, }, { MethodName: "ValueAddBundleList", Handler: _Bundle_ValueAddBundleList_Handler, }, { MethodName: "ValueAddBundleDetail", Handler: _Bundle_ValueAddBundleDetail_Handler, }, { MethodName: "ValueAddBundleRecordDetail", Handler: _Bundle_ValueAddBundleRecordDetail_Handler, }, }, Streams: []grpc_go.StreamDesc{}, Metadata: "pb/bundle.proto", }