thirdparty_service.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: thirdparty_service.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "property-household-gateway/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("thirdparty_service.proto", fileDescriptor_22d5d2ee5c1185d0)
  26. }
  27. var fileDescriptor_22d5d2ee5c1185d0 = []byte{
  28. // 254 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x4f, 0x4b, 0xc3, 0x40,
  30. 0x10, 0xc5, 0xc5, 0x83, 0xc8, 0x08, 0x1e, 0x56, 0xa9, 0x35, 0x28, 0x82, 0xf7, 0xa6, 0x54, 0x6f,
  31. 0x9e, 0xd4, 0x1e, 0xa4, 0x20, 0x58, 0xa4, 0x2a, 0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, 0x65, 0xff, 0xe8, 0x9d, 0x8c, 0x66, 0x25,
  43. 0x66, 0x94, 0xa7, 0x9d, 0xf7, 0x48, 0xf1, 0x2b, 0xb2, 0x5d, 0x8e, 0xe3, 0x9d, 0xf9, 0xef, 0x5c,
  44. 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x84, 0xfb, 0xbc, 0x25, 0xda, 0x01, 0x00, 0x00,
  45. }
  46. // Reference imports to suppress errors if they are not otherwise used.
  47. var _ context.Context
  48. var _ grpc.ClientConnInterface
  49. // This is a compile-time assertion to ensure that this generated file
  50. // is compatible with the grpc package it is being compiled against.
  51. const _ = grpc.SupportPackageIsVersion6
  52. // PropertyThirdpartyClient is the client API for PropertyThirdparty service.
  53. //
  54. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  55. type PropertyThirdpartyClient interface {
  56. // 获取短信验证码
  57. GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error)
  58. // 校验短信验证码
  59. CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error)
  60. // 微信小程序预支付
  61. WxAppletPrepay(ctx context.Context, in *v1.WxAppletPrepayRequest, opts ...grpc.CallOption) (*v1.WxAppletPrepayReply, error)
  62. OpenImToken(ctx context.Context, in *v1.OpenImTokenRequest, opts ...grpc.CallOption) (*v1.OpenImTokenReply, error)
  63. OpenImUserInfo(ctx context.Context, in *v1.OpenImUserInfoRequest, opts ...grpc.CallOption) (*v1.OpenImUserInfoReply, error)
  64. }
  65. type propertyThirdpartyClient struct {
  66. cc grpc.ClientConnInterface
  67. }
  68. func NewPropertyThirdpartyClient(cc grpc.ClientConnInterface) PropertyThirdpartyClient {
  69. return &propertyThirdpartyClient{cc}
  70. }
  71. func (c *propertyThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
  72. out := new(v1.GetVcodeReply)
  73. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/GetVcode", in, out, opts...)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return out, nil
  78. }
  79. func (c *propertyThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
  80. out := new(v1.CheckVcodeReply)
  81. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/CheckVcode", in, out, opts...)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return out, nil
  86. }
  87. func (c *propertyThirdpartyClient) WxAppletPrepay(ctx context.Context, in *v1.WxAppletPrepayRequest, opts ...grpc.CallOption) (*v1.WxAppletPrepayReply, error) {
  88. out := new(v1.WxAppletPrepayReply)
  89. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxAppletPrepay", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *propertyThirdpartyClient) OpenImToken(ctx context.Context, in *v1.OpenImTokenRequest, opts ...grpc.CallOption) (*v1.OpenImTokenReply, error) {
  96. out := new(v1.OpenImTokenReply)
  97. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImToken", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *propertyThirdpartyClient) OpenImUserInfo(ctx context.Context, in *v1.OpenImUserInfoRequest, opts ...grpc.CallOption) (*v1.OpenImUserInfoReply, error) {
  104. out := new(v1.OpenImUserInfoReply)
  105. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImUserInfo", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. // PropertyThirdpartyServer is the server API for PropertyThirdparty service.
  112. type PropertyThirdpartyServer interface {
  113. // 获取短信验证码
  114. GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
  115. // 校验短信验证码
  116. CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
  117. // 微信小程序预支付
  118. WxAppletPrepay(context.Context, *v1.WxAppletPrepayRequest) (*v1.WxAppletPrepayReply, error)
  119. OpenImToken(context.Context, *v1.OpenImTokenRequest) (*v1.OpenImTokenReply, error)
  120. OpenImUserInfo(context.Context, *v1.OpenImUserInfoRequest) (*v1.OpenImUserInfoReply, error)
  121. }
  122. // UnimplementedPropertyThirdpartyServer can be embedded to have forward compatible implementations.
  123. type UnimplementedPropertyThirdpartyServer struct {
  124. }
  125. func (*UnimplementedPropertyThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
  126. return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
  127. }
  128. func (*UnimplementedPropertyThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
  129. return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
  130. }
  131. func (*UnimplementedPropertyThirdpartyServer) WxAppletPrepay(ctx context.Context, req *v1.WxAppletPrepayRequest) (*v1.WxAppletPrepayReply, error) {
  132. return nil, status.Errorf(codes.Unimplemented, "method WxAppletPrepay not implemented")
  133. }
  134. func (*UnimplementedPropertyThirdpartyServer) OpenImToken(ctx context.Context, req *v1.OpenImTokenRequest) (*v1.OpenImTokenReply, error) {
  135. return nil, status.Errorf(codes.Unimplemented, "method OpenImToken not implemented")
  136. }
  137. func (*UnimplementedPropertyThirdpartyServer) OpenImUserInfo(ctx context.Context, req *v1.OpenImUserInfoRequest) (*v1.OpenImUserInfoReply, error) {
  138. return nil, status.Errorf(codes.Unimplemented, "method OpenImUserInfo not implemented")
  139. }
  140. func RegisterPropertyThirdpartyServer(s *grpc.Server, srv PropertyThirdpartyServer) {
  141. s.RegisterService(&_PropertyThirdparty_serviceDesc, srv)
  142. }
  143. func _PropertyThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  144. in := new(v1.GetVcodeRequest)
  145. if err := dec(in); err != nil {
  146. return nil, err
  147. }
  148. if interceptor == nil {
  149. return srv.(PropertyThirdpartyServer).GetVcode(ctx, in)
  150. }
  151. info := &grpc.UnaryServerInfo{
  152. Server: srv,
  153. FullMethod: "/pb.service.PropertyThirdparty/GetVcode",
  154. }
  155. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  156. return srv.(PropertyThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
  157. }
  158. return interceptor(ctx, in, info, handler)
  159. }
  160. func _PropertyThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  161. in := new(v1.CheckVcodeRequest)
  162. if err := dec(in); err != nil {
  163. return nil, err
  164. }
  165. if interceptor == nil {
  166. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, in)
  167. }
  168. info := &grpc.UnaryServerInfo{
  169. Server: srv,
  170. FullMethod: "/pb.service.PropertyThirdparty/CheckVcode",
  171. }
  172. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  173. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
  174. }
  175. return interceptor(ctx, in, info, handler)
  176. }
  177. func _PropertyThirdparty_WxAppletPrepay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  178. in := new(v1.WxAppletPrepayRequest)
  179. if err := dec(in); err != nil {
  180. return nil, err
  181. }
  182. if interceptor == nil {
  183. return srv.(PropertyThirdpartyServer).WxAppletPrepay(ctx, in)
  184. }
  185. info := &grpc.UnaryServerInfo{
  186. Server: srv,
  187. FullMethod: "/pb.service.PropertyThirdparty/WxAppletPrepay",
  188. }
  189. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  190. return srv.(PropertyThirdpartyServer).WxAppletPrepay(ctx, req.(*v1.WxAppletPrepayRequest))
  191. }
  192. return interceptor(ctx, in, info, handler)
  193. }
  194. func _PropertyThirdparty_OpenImToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  195. in := new(v1.OpenImTokenRequest)
  196. if err := dec(in); err != nil {
  197. return nil, err
  198. }
  199. if interceptor == nil {
  200. return srv.(PropertyThirdpartyServer).OpenImToken(ctx, in)
  201. }
  202. info := &grpc.UnaryServerInfo{
  203. Server: srv,
  204. FullMethod: "/pb.service.PropertyThirdparty/OpenImToken",
  205. }
  206. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  207. return srv.(PropertyThirdpartyServer).OpenImToken(ctx, req.(*v1.OpenImTokenRequest))
  208. }
  209. return interceptor(ctx, in, info, handler)
  210. }
  211. func _PropertyThirdparty_OpenImUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  212. in := new(v1.OpenImUserInfoRequest)
  213. if err := dec(in); err != nil {
  214. return nil, err
  215. }
  216. if interceptor == nil {
  217. return srv.(PropertyThirdpartyServer).OpenImUserInfo(ctx, in)
  218. }
  219. info := &grpc.UnaryServerInfo{
  220. Server: srv,
  221. FullMethod: "/pb.service.PropertyThirdparty/OpenImUserInfo",
  222. }
  223. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  224. return srv.(PropertyThirdpartyServer).OpenImUserInfo(ctx, req.(*v1.OpenImUserInfoRequest))
  225. }
  226. return interceptor(ctx, in, info, handler)
  227. }
  228. var _PropertyThirdparty_serviceDesc = grpc.ServiceDesc{
  229. ServiceName: "pb.service.PropertyThirdparty",
  230. HandlerType: (*PropertyThirdpartyServer)(nil),
  231. Methods: []grpc.MethodDesc{
  232. {
  233. MethodName: "GetVcode",
  234. Handler: _PropertyThirdparty_GetVcode_Handler,
  235. },
  236. {
  237. MethodName: "CheckVcode",
  238. Handler: _PropertyThirdparty_CheckVcode_Handler,
  239. },
  240. {
  241. MethodName: "WxAppletPrepay",
  242. Handler: _PropertyThirdparty_WxAppletPrepay_Handler,
  243. },
  244. {
  245. MethodName: "OpenImToken",
  246. Handler: _PropertyThirdparty_OpenImToken_Handler,
  247. },
  248. {
  249. MethodName: "OpenImUserInfo",
  250. Handler: _PropertyThirdparty_OpenImUserInfo_Handler,
  251. },
  252. },
  253. Streams: []grpc.StreamDesc{},
  254. Metadata: "thirdparty_service.proto",
  255. }