// 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-garden/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{ // 287 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x4b, 0xc3, 0x40, 0x10, 0xc5, 0x3d, 0x88, 0xc8, 0x82, 0x8a, 0x63, 0x29, 0x35, 0x55, 0x04, 0xef, 0xa6, 0x54, 0x6f, 0x9e, 0xac, 0x1e, 0x44, 0xa8, 0x18, 0xb5, 0x5a, 0xf0, 0x52, 0xf2, 0x67, 0x48, 0x82, 0x21, 0x19, 0x37, 0x9b, 0xd0, 0xfd, 0x38, 0x7e, 0xd3, 0x42, 0x36, 0xd3, 0xd0, 0xb4, 0xb9, 0xbe, 0xdf, 0x9b, 0x1f, 0x3c, 0x18, 0x31, 0x50, 0x51, 0x2c, 0x03, 0x72, 0xa5, 0xd2, 0x8b, 0x1c, 0x65, 0x19, 0xfb, 0x68, 0x93, 0xcc, 0x54, 0x06, 0x82, 0x3c, 0xbb, 0x4e, 0xac, 0xb3, 0x72, 0x3c, 0x6a, 0x8a, 0xa6, 0x70, 0xfb, 0xbf, 0x2f, 0xc0, 0x91, 0x19, 0xa1, 0x54, 0x7a, 0xb6, 0x86, 0x70, 0x2f, 0x0e, 0x9f, 0x51, 0x7d, 0xfb, 0x59, 0x80, 0xd0, 0xb7, 0xc9, 0x5b, 0x94, 0x63, 0x9b, 0x83, 0x0f, 0xfc, 0x2b, 0x30, 0x57, 0x56, 0x6f, 0x2b, 0xa7, 0x44, 0x5f, 0xef, 0xc1, 0x83, 0x10, 0x4f, 0x11, 0xfa, 0xbf, 0xe6, 0x7a, 0x50, 0xb7, 0x9a, 0x88, 0xef, 0xfb, 0x3b, 0x88, 0x31, 0x7c, 0x89, 0xd3, 0xf9, 0x72, 0x42, 0x94, 0xa0, 0x9a, 0x66, 0x61, 0x9c, 0x4e, 0x0a, 0x15, 0xc1, 0x55, 0x5d, 0xdf, 0x22, 0xec, 0xbb, 0xec, 0x2e, 0x18, 0xed, 0x54, 0x1c, 0x33, 0x73, 0x24, 0x92, 0xab, 0xe1, 0xa2, 0x75, 0x62, 0x62, 0x16, 0x5a, 0x1d, 0xd4, 0xd8, 0x5e, 0xc4, 0x11, 0x83, 0xf7, 0x02, 0xa5, 0x86, 0x61, 0xab, 0x5e, 0xa5, 0xec, 0x3a, 0xdf, 0x0d, 0x8d, 0xea, 0x4d, 0x9c, 0xcc, 0x97, 0x4e, 0xe1, 0x25, 0xb1, 0xff, 0x9a, 0x87, 0x9f, 0x98, 0x06, 0xd0, 0x8c, 0xd9, 0xc8, 0x59, 0x37, 0xec, 0xc2, 0xeb, 0xa5, 0x33, 0x4c, 0x7d, 0x4c, 0x15, 0xfb, 0x78, 0xe9, 0x66, 0xdc, 0x5e, 0xda, 0xa6, 0x95, 0xed, 0xb1, 0xf7, 0x03, 0x54, 0xbf, 0xc8, 0x4d, 0xe8, 0xca, 0x00, 0xd3, 0x11, 0x79, 0xde, 0x41, 0xf5, 0x40, 0x77, 0xab, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x8c, 0x89, 0x20, 0x7d, 0x02, 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) // 微信小程序登录验证 WxAppletLoginAuth(ctx context.Context, in *v1.WxAppletLoginAuthRequest, opts ...grpc.CallOption) (*v1.WxAppletLoginAuthReply, error) // 微信小程序预支付 WxAppletPrepay(ctx context.Context, in *v1.WxAppletPrepayRequest, opts ...grpc.CallOption) (*v1.WxAppletPrepayReply, error) // 微信小程序支付订单查询 WxAppletQuery(ctx context.Context, in *v1.WxAppletQueryRequest, opts ...grpc.CallOption) (*v1.WxAppletQueryReply, error) // 公众号推送消息 WxPublicMsgSend(ctx context.Context, in *v1.WxPublicMsgSendRequest, opts ...grpc.CallOption) (*v1.WxPublicMsgSendReply, error) // 短信发送 TencentMsgSend(ctx context.Context, in *v1.TencentMsgSendRequest, opts ...grpc.CallOption) (*v1.TencentMsgSendReply, 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) WxAppletLoginAuth(ctx context.Context, in *v1.WxAppletLoginAuthRequest, opts ...grpc.CallOption) (*v1.WxAppletLoginAuthReply, error) { out := new(v1.WxAppletLoginAuthReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxAppletLoginAuth", 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) WxAppletQuery(ctx context.Context, in *v1.WxAppletQueryRequest, opts ...grpc.CallOption) (*v1.WxAppletQueryReply, error) { out := new(v1.WxAppletQueryReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxAppletQuery", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyThirdpartyClient) WxPublicMsgSend(ctx context.Context, in *v1.WxPublicMsgSendRequest, opts ...grpc.CallOption) (*v1.WxPublicMsgSendReply, error) { out := new(v1.WxPublicMsgSendReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxPublicMsgSend", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyThirdpartyClient) TencentMsgSend(ctx context.Context, in *v1.TencentMsgSendRequest, opts ...grpc.CallOption) (*v1.TencentMsgSendReply, error) { out := new(v1.TencentMsgSendReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/TencentMsgSend", 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) // 微信小程序登录验证 WxAppletLoginAuth(context.Context, *v1.WxAppletLoginAuthRequest) (*v1.WxAppletLoginAuthReply, error) // 微信小程序预支付 WxAppletPrepay(context.Context, *v1.WxAppletPrepayRequest) (*v1.WxAppletPrepayReply, error) // 微信小程序支付订单查询 WxAppletQuery(context.Context, *v1.WxAppletQueryRequest) (*v1.WxAppletQueryReply, error) // 公众号推送消息 WxPublicMsgSend(context.Context, *v1.WxPublicMsgSendRequest) (*v1.WxPublicMsgSendReply, error) // 短信发送 TencentMsgSend(context.Context, *v1.TencentMsgSendRequest) (*v1.TencentMsgSendReply, 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) WxAppletLoginAuth(ctx context.Context, req *v1.WxAppletLoginAuthRequest) (*v1.WxAppletLoginAuthReply, error) { return nil, status.Errorf(codes.Unimplemented, "method WxAppletLoginAuth 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) WxAppletQuery(ctx context.Context, req *v1.WxAppletQueryRequest) (*v1.WxAppletQueryReply, error) { return nil, status.Errorf(codes.Unimplemented, "method WxAppletQuery not implemented") } func (*UnimplementedPropertyThirdpartyServer) WxPublicMsgSend(ctx context.Context, req *v1.WxPublicMsgSendRequest) (*v1.WxPublicMsgSendReply, error) { return nil, status.Errorf(codes.Unimplemented, "method WxPublicMsgSend not implemented") } func (*UnimplementedPropertyThirdpartyServer) TencentMsgSend(ctx context.Context, req *v1.TencentMsgSendRequest) (*v1.TencentMsgSendReply, error) { return nil, status.Errorf(codes.Unimplemented, "method TencentMsgSend 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_WxAppletLoginAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.WxAppletLoginAuthRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).WxAppletLoginAuth(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/WxAppletLoginAuth", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).WxAppletLoginAuth(ctx, req.(*v1.WxAppletLoginAuthRequest)) } 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_WxAppletQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.WxAppletQueryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).WxAppletQuery(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/WxAppletQuery", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).WxAppletQuery(ctx, req.(*v1.WxAppletQueryRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyThirdparty_WxPublicMsgSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.WxPublicMsgSendRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).WxPublicMsgSend(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/WxPublicMsgSend", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).WxPublicMsgSend(ctx, req.(*v1.WxPublicMsgSendRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyThirdparty_TencentMsgSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.TencentMsgSendRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyThirdpartyServer).TencentMsgSend(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyThirdparty/TencentMsgSend", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyThirdpartyServer).TencentMsgSend(ctx, req.(*v1.TencentMsgSendRequest)) } 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: "WxAppletLoginAuth", Handler: _PropertyThirdparty_WxAppletLoginAuth_Handler, }, { MethodName: "WxAppletPrepay", Handler: _PropertyThirdparty_WxAppletPrepay_Handler, }, { MethodName: "WxAppletQuery", Handler: _PropertyThirdparty_WxAppletQuery_Handler, }, { MethodName: "WxPublicMsgSend", Handler: _PropertyThirdparty_WxPublicMsgSend_Handler, }, { MethodName: "TencentMsgSend", Handler: _PropertyThirdparty_TencentMsgSend_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "thirdparty_service.proto", }