// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
package crm_srm
|
|
import (
|
context "context"
|
grpc "google.golang.org/grpc"
|
codes "google.golang.org/grpc/codes"
|
status "google.golang.org/grpc/status"
|
)
|
|
// This is a compile-time assertion to ensure that this generated file
|
// is compatible with the grpc package it is being compiled against.
|
// Requires gRPC-Go v1.32.0 or later.
|
const _ = grpc.SupportPackageIsVersion7
|
|
// CrmAndSrmServiceClient is the client API for CrmAndSrmService 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 CrmAndSrmServiceClient interface {
|
CrmGetPurchaseInfo(ctx context.Context, in *CrmGetPurchaseInfoRequest, opts ...grpc.CallOption) (*CrmGetPurchaseInfoResponse, error)
|
}
|
|
type crmAndSrmServiceClient struct {
|
cc grpc.ClientConnInterface
|
}
|
|
func NewCrmAndSrmServiceClient(cc grpc.ClientConnInterface) CrmAndSrmServiceClient {
|
return &crmAndSrmServiceClient{cc}
|
}
|
|
func (c *crmAndSrmServiceClient) CrmGetPurchaseInfo(ctx context.Context, in *CrmGetPurchaseInfoRequest, opts ...grpc.CallOption) (*CrmGetPurchaseInfoResponse, error) {
|
out := new(CrmGetPurchaseInfoResponse)
|
err := c.cc.Invoke(ctx, "/CrmAndSrmService/CrmGetPurchaseInfo", in, out, opts...)
|
if err != nil {
|
return nil, err
|
}
|
return out, nil
|
}
|
|
// CrmAndSrmServiceServer is the server API for CrmAndSrmService service.
|
// All implementations must embed UnimplementedCrmAndSrmServiceServer
|
// for forward compatibility
|
type CrmAndSrmServiceServer interface {
|
CrmGetPurchaseInfo(context.Context, *CrmGetPurchaseInfoRequest) (*CrmGetPurchaseInfoResponse, error)
|
mustEmbedUnimplementedCrmAndSrmServiceServer()
|
}
|
|
// UnimplementedCrmAndSrmServiceServer must be embedded to have forward compatible implementations.
|
type UnimplementedCrmAndSrmServiceServer struct {
|
}
|
|
func (UnimplementedCrmAndSrmServiceServer) CrmGetPurchaseInfo(context.Context, *CrmGetPurchaseInfoRequest) (*CrmGetPurchaseInfoResponse, error) {
|
return nil, status.Errorf(codes.Unimplemented, "method CrmGetPurchaseInfo not implemented")
|
}
|
func (UnimplementedCrmAndSrmServiceServer) mustEmbedUnimplementedCrmAndSrmServiceServer() {}
|
|
// UnsafeCrmAndSrmServiceServer may be embedded to opt out of forward compatibility for this service.
|
// Use of this interface is not recommended, as added methods to CrmAndSrmServiceServer will
|
// result in compilation errors.
|
type UnsafeCrmAndSrmServiceServer interface {
|
mustEmbedUnimplementedCrmAndSrmServiceServer()
|
}
|
|
func RegisterCrmAndSrmServiceServer(s grpc.ServiceRegistrar, srv CrmAndSrmServiceServer) {
|
s.RegisterService(&CrmAndSrmService_ServiceDesc, srv)
|
}
|
|
func _CrmAndSrmService_CrmGetPurchaseInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
in := new(CrmGetPurchaseInfoRequest)
|
if err := dec(in); err != nil {
|
return nil, err
|
}
|
if interceptor == nil {
|
return srv.(CrmAndSrmServiceServer).CrmGetPurchaseInfo(ctx, in)
|
}
|
info := &grpc.UnaryServerInfo{
|
Server: srv,
|
FullMethod: "/CrmAndSrmService/CrmGetPurchaseInfo",
|
}
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
return srv.(CrmAndSrmServiceServer).CrmGetPurchaseInfo(ctx, req.(*CrmGetPurchaseInfoRequest))
|
}
|
return interceptor(ctx, in, info, handler)
|
}
|
|
// CrmAndSrmService_ServiceDesc is the grpc.ServiceDesc for CrmAndSrmService service.
|
// It's only intended for direct use with grpc.RegisterService,
|
// and not to be introspected or modified (even as a copy)
|
var CrmAndSrmService_ServiceDesc = grpc.ServiceDesc{
|
ServiceName: "CrmAndSrmService",
|
HandlerType: (*CrmAndSrmServiceServer)(nil),
|
Methods: []grpc.MethodDesc{
|
{
|
MethodName: "CrmGetPurchaseInfo",
|
Handler: _CrmAndSrmService_CrmGetPurchaseInfo_Handler,
|
},
|
},
|
Streams: []grpc.StreamDesc{},
|
Metadata: "crm_srm.proto",
|
}
|