// Code generated by protoc-gen-go. DO NOT EDIT. // source: thirdparty_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" v1 "property-household-gateway/pb/v1" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("thirdparty_service.proto", fileDescriptor_22d5d2ee5c1185d0) } var fileDescriptor_22d5d2ee5c1185d0 = []byte{ // 254 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x4f, 0x4b, 0xc3, 0x40, 0x10, 0xc5, 0xc5, 0x83, 0xc8, 0x08, 0x1e, 0x56, 0xa9, 0x35, 0x28, 0x82, 0xf7, 0xa6, 0x54, 0x6f, 0x9e, 0xd4, 0x1e, 0xa4, 0x20, 0x58, 0xa4, 0x2a, 0x78, 0x29, 0xf9, 0x33, 0x9a, 0xd2, 0x98, 0x19, 0x27, 0xd3, 0xe8, 0x7e, 0x6e, 0xbf, 0x80, 0xd0, 0xdd, 0xa4, 0xb6, 0xb6, 0xd7, 0xdf, 0x7b, 0xf3, 0xe3, 0xb1, 0x0b, 0x6d, 0xcd, 0x26, 0x92, 0x72, 0x24, 0x6a, 0xc7, 0x25, 0x4a, 0x35, 0x49, 0x30, 0x64, 0x21, 0x25, 0x03, 0x1c, 0x87, 0x9e, 0x04, 0x07, 0x55, 0xaf, 0xbb, 0x28, 0xba, 0xc2, 0xc5, 0xcf, 0x36, 0x98, 0xa1, 0x10, 0xa3, 0xa8, 0x1d, 0x35, 0xa1, 0xb9, 0x82, 0xdd, 0x3b, 0xd4, 0xe7, 0x84, 0x52, 0x34, 0xad, 0x90, 0xe3, 0x71, 0xd5, 0x0b, 0x6b, 0xf0, 0x88, 0x9f, 0x33, 0x2c, 0x35, 0x38, 0xfc, 0xc7, 0x39, 0xb7, 0xe7, 0x5b, 0xe6, 0x1a, 0xa0, 0x9f, 0x61, 0x32, 0x75, 0xd7, 0x6d, 0xdf, 0x5a, 0xa0, 0xfa, 0xbe, 0xb5, 0x26, 0x71, 0x86, 0x7b, 0xd8, 0x7f, 0xf9, 0xbe, 0x61, 0xce, 0x51, 0x87, 0x82, 0x1c, 0x59, 0x73, 0xe2, 0xbb, 0xcb, 0xb8, 0x36, 0x05, 0x1b, 0x52, 0x67, 0xeb, 0xc3, 0xde, 0x03, 0x63, 0x31, 0xf8, 0x18, 0xd1, 0x14, 0x0b, 0x73, 0xec, 0xcb, 0x7f, 0x58, 0xed, 0x39, 0x5a, 0x17, 0x35, 0x93, 0x1c, 0x7d, 0x2a, 0x51, 0x06, 0xc5, 0x1b, 0x35, 0x93, 0x96, 0xf1, 0xea, 0xa4, 0xd5, 0x74, 0x6e, 0xbb, 0x3d, 0x7b, 0x3d, 0x65, 0xff, 0xe8, 0x9d, 0x8c, 0x66, 0x25, 0x66, 0x94, 0xa7, 0x9d, 0xf7, 0x48, 0xf1, 0x2b, 0xb2, 0x5d, 0x8e, 0xe3, 0x9d, 0xf9, 0xef, 0x5c, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x84, 0xfb, 0xbc, 0x25, 0xda, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // 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.SupportPackageIsVersion6 // PropertyThirdpartyClient is the client API for PropertyThirdparty service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type PropertyThirdpartyClient interface { // 获取短信验证码 GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) // 校验短信验证码 CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) // 微信小程序预支付 WxAppletPrepay(ctx context.Context, in *v1.WxAppletPrepayRequest, opts ...grpc.CallOption) (*v1.WxAppletPrepayReply, error) OpenImToken(ctx context.Context, in *v1.OpenImTokenRequest, opts ...grpc.CallOption) (*v1.OpenImTokenReply, error) OpenImUserInfo(ctx context.Context, in *v1.OpenImUserInfoRequest, opts ...grpc.CallOption) (*v1.OpenImUserInfoReply, error) } type propertyThirdpartyClient struct { cc grpc.ClientConnInterface } func NewPropertyThirdpartyClient(cc grpc.ClientConnInterface) PropertyThirdpartyClient { return &propertyThirdpartyClient{cc} } func (c *propertyThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) { out := new(v1.GetVcodeReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/GetVcode", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) { out := new(v1.CheckVcodeReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/CheckVcode", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyThirdpartyClient) WxAppletPrepay(ctx context.Context, in *v1.WxAppletPrepayRequest, opts ...grpc.CallOption) (*v1.WxAppletPrepayReply, error) { out := new(v1.WxAppletPrepayReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxAppletPrepay", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyThirdpartyClient) OpenImToken(ctx context.Context, in *v1.OpenImTokenRequest, opts ...grpc.CallOption) (*v1.OpenImTokenReply, error) { out := new(v1.OpenImTokenReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImToken", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyThirdpartyClient) OpenImUserInfo(ctx context.Context, in *v1.OpenImUserInfoRequest, opts ...grpc.CallOption) (*v1.OpenImUserInfoReply, error) { out := new(v1.OpenImUserInfoReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImUserInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } // PropertyThirdpartyServer is the server API for PropertyThirdparty service. type PropertyThirdpartyServer interface { // 获取短信验证码 GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) // 校验短信验证码 CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) // 微信小程序预支付 WxAppletPrepay(context.Context, *v1.WxAppletPrepayRequest) (*v1.WxAppletPrepayReply, error) OpenImToken(context.Context, *v1.OpenImTokenRequest) (*v1.OpenImTokenReply, error) OpenImUserInfo(context.Context, *v1.OpenImUserInfoRequest) (*v1.OpenImUserInfoReply, error) } // UnimplementedPropertyThirdpartyServer can be embedded to have forward compatible implementations. type UnimplementedPropertyThirdpartyServer struct { } func (*UnimplementedPropertyThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented") } func (*UnimplementedPropertyThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented") } func (*UnimplementedPropertyThirdpartyServer) WxAppletPrepay(ctx context.Context, req *v1.WxAppletPrepayRequest) (*v1.WxAppletPrepayReply, error) { return nil, status.Errorf(codes.Unimplemented, "method WxAppletPrepay not implemented") } func (*UnimplementedPropertyThirdpartyServer) OpenImToken(ctx context.Context, req *v1.OpenImTokenRequest) (*v1.OpenImTokenReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OpenImToken not implemented") } func (*UnimplementedPropertyThirdpartyServer) OpenImUserInfo(ctx context.Context, req *v1.OpenImUserInfoRequest) (*v1.OpenImUserInfoReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OpenImUserInfo not implemented") } func RegisterPropertyThirdpartyServer(s *grpc.Server, srv PropertyThirdpartyServer) { s.RegisterService(&_PropertyThirdparty_serviceDesc, srv) } func _PropertyThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GetVcodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).GetVcode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/GetVcode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CheckVcodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).CheckVcode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/CheckVcode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyThirdparty_WxAppletPrepay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.WxAppletPrepayRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).WxAppletPrepay(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/WxAppletPrepay", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).WxAppletPrepay(ctx, req.(*v1.WxAppletPrepayRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyThirdparty_OpenImToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OpenImTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).OpenImToken(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/OpenImToken", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).OpenImToken(ctx, req.(*v1.OpenImTokenRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyThirdparty_OpenImUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OpenImUserInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).OpenImUserInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/OpenImUserInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).OpenImUserInfo(ctx, req.(*v1.OpenImUserInfoRequest)) } return interceptor(ctx, in, info, handler) } var _PropertyThirdparty_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.PropertyThirdparty", HandlerType: (*PropertyThirdpartyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVcode", Handler: _PropertyThirdparty_GetVcode_Handler, }, { MethodName: "CheckVcode", Handler: _PropertyThirdparty_CheckVcode_Handler, }, { MethodName: "WxAppletPrepay", Handler: _PropertyThirdparty_WxAppletPrepay_Handler, }, { MethodName: "OpenImToken", Handler: _PropertyThirdparty_OpenImToken_Handler, }, { MethodName: "OpenImUserInfo", Handler: _PropertyThirdparty_OpenImUserInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "thirdparty_service.proto", }