thirdparty_service.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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-garden/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. // 287 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x4b, 0xc3, 0x40,
  30. 0x10, 0xc5, 0x3d, 0x88, 0xc8, 0x82, 0x8a, 0x63, 0x29, 0x35, 0x55, 0x04, 0xef, 0xa6, 0x54, 0x6f,
  31. 0x9e, 0xac, 0x1e, 0x44, 0xa8, 0x18, 0xb5, 0x5a, 0xf0, 0x52, 0xf2, 0x67, 0x48, 0x82, 0x21, 0x19,
  32. 0x37, 0x9b, 0xd0, 0xfd, 0x38, 0x7e, 0xd3, 0x42, 0x36, 0xd3, 0xd0, 0xb4, 0xb9, 0xbe, 0xdf, 0x9b,
  33. 0x1f, 0x3c, 0x18, 0x31, 0x50, 0x51, 0x2c, 0x03, 0x72, 0xa5, 0xd2, 0x8b, 0x1c, 0x65, 0x19, 0xfb,
  34. 0x68, 0x93, 0xcc, 0x54, 0x06, 0x82, 0x3c, 0xbb, 0x4e, 0xac, 0xb3, 0x72, 0x3c, 0x6a, 0x8a, 0xa6,
  35. 0x70, 0xfb, 0xbf, 0x2f, 0xc0, 0x91, 0x19, 0xa1, 0x54, 0x7a, 0xb6, 0x86, 0x70, 0x2f, 0x0e, 0x9f,
  36. 0x51, 0x7d, 0xfb, 0x59, 0x80, 0xd0, 0xb7, 0xc9, 0x5b, 0x94, 0x63, 0x9b, 0x83, 0x0f, 0xfc, 0x2b,
  37. 0x30, 0x57, 0x56, 0x6f, 0x2b, 0xa7, 0x44, 0x5f, 0xef, 0xc1, 0x83, 0x10, 0x4f, 0x11, 0xfa, 0xbf,
  38. 0xe6, 0x7a, 0x50, 0xb7, 0x9a, 0x88, 0xef, 0xfb, 0x3b, 0x88, 0x31, 0x7c, 0x89, 0xd3, 0xf9, 0x72,
  39. 0x42, 0x94, 0xa0, 0x9a, 0x66, 0x61, 0x9c, 0x4e, 0x0a, 0x15, 0xc1, 0x55, 0x5d, 0xdf, 0x22, 0xec,
  40. 0xbb, 0xec, 0x2e, 0x18, 0xed, 0x54, 0x1c, 0x33, 0x73, 0x24, 0x92, 0xab, 0xe1, 0xa2, 0x75, 0x62,
  41. 0x62, 0x16, 0x5a, 0x1d, 0xd4, 0xd8, 0x5e, 0xc4, 0x11, 0x83, 0xf7, 0x02, 0xa5, 0x86, 0x61, 0xab,
  42. 0x5e, 0xa5, 0xec, 0x3a, 0xdf, 0x0d, 0x8d, 0xea, 0x4d, 0x9c, 0xcc, 0x97, 0x4e, 0xe1, 0x25, 0xb1,
  43. 0xff, 0x9a, 0x87, 0x9f, 0x98, 0x06, 0xd0, 0x8c, 0xd9, 0xc8, 0x59, 0x37, 0xec, 0xc2, 0xeb, 0xa5,
  44. 0x33, 0x4c, 0x7d, 0x4c, 0x15, 0xfb, 0x78, 0xe9, 0x66, 0xdc, 0x5e, 0xda, 0xa6, 0x95, 0xed, 0xb1,
  45. 0xf7, 0x03, 0x54, 0xbf, 0xc8, 0x4d, 0xe8, 0xca, 0x00, 0xd3, 0x11, 0x79, 0xde, 0x41, 0xf5, 0x40,
  46. 0x77, 0xab, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x8c, 0x89, 0x20, 0x7d, 0x02, 0x00, 0x00,
  47. }
  48. // Reference imports to suppress errors if they are not otherwise used.
  49. var _ context.Context
  50. var _ grpc.ClientConnInterface
  51. // This is a compile-time assertion to ensure that this generated file
  52. // is compatible with the grpc package it is being compiled against.
  53. const _ = grpc.SupportPackageIsVersion6
  54. // PropertyThirdpartyClient is the client API for PropertyThirdparty service.
  55. //
  56. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  57. type PropertyThirdpartyClient interface {
  58. // 获取短信验证码
  59. GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error)
  60. // 校验短信验证码
  61. CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error)
  62. // 微信小程序登录验证
  63. WxAppletLoginAuth(ctx context.Context, in *v1.WxAppletLoginAuthRequest, opts ...grpc.CallOption) (*v1.WxAppletLoginAuthReply, error)
  64. // 微信小程序预支付
  65. WxAppletPrepay(ctx context.Context, in *v1.WxAppletPrepayRequest, opts ...grpc.CallOption) (*v1.WxAppletPrepayReply, error)
  66. // 微信小程序支付订单查询
  67. WxAppletQuery(ctx context.Context, in *v1.WxAppletQueryRequest, opts ...grpc.CallOption) (*v1.WxAppletQueryReply, error)
  68. // 公众号推送消息
  69. WxPublicMsgSend(ctx context.Context, in *v1.WxPublicMsgSendRequest, opts ...grpc.CallOption) (*v1.WxPublicMsgSendReply, error)
  70. // 短信发送
  71. TencentMsgSend(ctx context.Context, in *v1.TencentMsgSendRequest, opts ...grpc.CallOption) (*v1.TencentMsgSendReply, error)
  72. }
  73. type propertyThirdpartyClient struct {
  74. cc grpc.ClientConnInterface
  75. }
  76. func NewPropertyThirdpartyClient(cc grpc.ClientConnInterface) PropertyThirdpartyClient {
  77. return &propertyThirdpartyClient{cc}
  78. }
  79. func (c *propertyThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
  80. out := new(v1.GetVcodeReply)
  81. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/GetVcode", in, out, opts...)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return out, nil
  86. }
  87. func (c *propertyThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
  88. out := new(v1.CheckVcodeReply)
  89. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/CheckVcode", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *propertyThirdpartyClient) WxAppletLoginAuth(ctx context.Context, in *v1.WxAppletLoginAuthRequest, opts ...grpc.CallOption) (*v1.WxAppletLoginAuthReply, error) {
  96. out := new(v1.WxAppletLoginAuthReply)
  97. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxAppletLoginAuth", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *propertyThirdpartyClient) WxAppletPrepay(ctx context.Context, in *v1.WxAppletPrepayRequest, opts ...grpc.CallOption) (*v1.WxAppletPrepayReply, error) {
  104. out := new(v1.WxAppletPrepayReply)
  105. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxAppletPrepay", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. func (c *propertyThirdpartyClient) WxAppletQuery(ctx context.Context, in *v1.WxAppletQueryRequest, opts ...grpc.CallOption) (*v1.WxAppletQueryReply, error) {
  112. out := new(v1.WxAppletQueryReply)
  113. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxAppletQuery", in, out, opts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. func (c *propertyThirdpartyClient) WxPublicMsgSend(ctx context.Context, in *v1.WxPublicMsgSendRequest, opts ...grpc.CallOption) (*v1.WxPublicMsgSendReply, error) {
  120. out := new(v1.WxPublicMsgSendReply)
  121. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxPublicMsgSend", in, out, opts...)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return out, nil
  126. }
  127. func (c *propertyThirdpartyClient) TencentMsgSend(ctx context.Context, in *v1.TencentMsgSendRequest, opts ...grpc.CallOption) (*v1.TencentMsgSendReply, error) {
  128. out := new(v1.TencentMsgSendReply)
  129. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/TencentMsgSend", in, out, opts...)
  130. if err != nil {
  131. return nil, err
  132. }
  133. return out, nil
  134. }
  135. // PropertyThirdpartyServer is the server API for PropertyThirdparty service.
  136. type PropertyThirdpartyServer interface {
  137. // 获取短信验证码
  138. GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
  139. // 校验短信验证码
  140. CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
  141. // 微信小程序登录验证
  142. WxAppletLoginAuth(context.Context, *v1.WxAppletLoginAuthRequest) (*v1.WxAppletLoginAuthReply, error)
  143. // 微信小程序预支付
  144. WxAppletPrepay(context.Context, *v1.WxAppletPrepayRequest) (*v1.WxAppletPrepayReply, error)
  145. // 微信小程序支付订单查询
  146. WxAppletQuery(context.Context, *v1.WxAppletQueryRequest) (*v1.WxAppletQueryReply, error)
  147. // 公众号推送消息
  148. WxPublicMsgSend(context.Context, *v1.WxPublicMsgSendRequest) (*v1.WxPublicMsgSendReply, error)
  149. // 短信发送
  150. TencentMsgSend(context.Context, *v1.TencentMsgSendRequest) (*v1.TencentMsgSendReply, error)
  151. }
  152. // UnimplementedPropertyThirdpartyServer can be embedded to have forward compatible implementations.
  153. type UnimplementedPropertyThirdpartyServer struct {
  154. }
  155. func (*UnimplementedPropertyThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
  156. return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
  157. }
  158. func (*UnimplementedPropertyThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
  159. return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
  160. }
  161. func (*UnimplementedPropertyThirdpartyServer) WxAppletLoginAuth(ctx context.Context, req *v1.WxAppletLoginAuthRequest) (*v1.WxAppletLoginAuthReply, error) {
  162. return nil, status.Errorf(codes.Unimplemented, "method WxAppletLoginAuth not implemented")
  163. }
  164. func (*UnimplementedPropertyThirdpartyServer) WxAppletPrepay(ctx context.Context, req *v1.WxAppletPrepayRequest) (*v1.WxAppletPrepayReply, error) {
  165. return nil, status.Errorf(codes.Unimplemented, "method WxAppletPrepay not implemented")
  166. }
  167. func (*UnimplementedPropertyThirdpartyServer) WxAppletQuery(ctx context.Context, req *v1.WxAppletQueryRequest) (*v1.WxAppletQueryReply, error) {
  168. return nil, status.Errorf(codes.Unimplemented, "method WxAppletQuery not implemented")
  169. }
  170. func (*UnimplementedPropertyThirdpartyServer) WxPublicMsgSend(ctx context.Context, req *v1.WxPublicMsgSendRequest) (*v1.WxPublicMsgSendReply, error) {
  171. return nil, status.Errorf(codes.Unimplemented, "method WxPublicMsgSend not implemented")
  172. }
  173. func (*UnimplementedPropertyThirdpartyServer) TencentMsgSend(ctx context.Context, req *v1.TencentMsgSendRequest) (*v1.TencentMsgSendReply, error) {
  174. return nil, status.Errorf(codes.Unimplemented, "method TencentMsgSend not implemented")
  175. }
  176. func RegisterPropertyThirdpartyServer(s *grpc.Server, srv PropertyThirdpartyServer) {
  177. s.RegisterService(&_PropertyThirdparty_serviceDesc, srv)
  178. }
  179. func _PropertyThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  180. in := new(v1.GetVcodeRequest)
  181. if err := dec(in); err != nil {
  182. return nil, err
  183. }
  184. if interceptor == nil {
  185. return srv.(PropertyThirdpartyServer).GetVcode(ctx, in)
  186. }
  187. info := &grpc.UnaryServerInfo{
  188. Server: srv,
  189. FullMethod: "/pb.service.PropertyThirdparty/GetVcode",
  190. }
  191. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  192. return srv.(PropertyThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
  193. }
  194. return interceptor(ctx, in, info, handler)
  195. }
  196. func _PropertyThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  197. in := new(v1.CheckVcodeRequest)
  198. if err := dec(in); err != nil {
  199. return nil, err
  200. }
  201. if interceptor == nil {
  202. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, in)
  203. }
  204. info := &grpc.UnaryServerInfo{
  205. Server: srv,
  206. FullMethod: "/pb.service.PropertyThirdparty/CheckVcode",
  207. }
  208. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  209. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
  210. }
  211. return interceptor(ctx, in, info, handler)
  212. }
  213. func _PropertyThirdparty_WxAppletLoginAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  214. in := new(v1.WxAppletLoginAuthRequest)
  215. if err := dec(in); err != nil {
  216. return nil, err
  217. }
  218. if interceptor == nil {
  219. return srv.(PropertyThirdpartyServer).WxAppletLoginAuth(ctx, in)
  220. }
  221. info := &grpc.UnaryServerInfo{
  222. Server: srv,
  223. FullMethod: "/pb.service.PropertyThirdparty/WxAppletLoginAuth",
  224. }
  225. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  226. return srv.(PropertyThirdpartyServer).WxAppletLoginAuth(ctx, req.(*v1.WxAppletLoginAuthRequest))
  227. }
  228. return interceptor(ctx, in, info, handler)
  229. }
  230. func _PropertyThirdparty_WxAppletPrepay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  231. in := new(v1.WxAppletPrepayRequest)
  232. if err := dec(in); err != nil {
  233. return nil, err
  234. }
  235. if interceptor == nil {
  236. return srv.(PropertyThirdpartyServer).WxAppletPrepay(ctx, in)
  237. }
  238. info := &grpc.UnaryServerInfo{
  239. Server: srv,
  240. FullMethod: "/pb.service.PropertyThirdparty/WxAppletPrepay",
  241. }
  242. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  243. return srv.(PropertyThirdpartyServer).WxAppletPrepay(ctx, req.(*v1.WxAppletPrepayRequest))
  244. }
  245. return interceptor(ctx, in, info, handler)
  246. }
  247. func _PropertyThirdparty_WxAppletQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  248. in := new(v1.WxAppletQueryRequest)
  249. if err := dec(in); err != nil {
  250. return nil, err
  251. }
  252. if interceptor == nil {
  253. return srv.(PropertyThirdpartyServer).WxAppletQuery(ctx, in)
  254. }
  255. info := &grpc.UnaryServerInfo{
  256. Server: srv,
  257. FullMethod: "/pb.service.PropertyThirdparty/WxAppletQuery",
  258. }
  259. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  260. return srv.(PropertyThirdpartyServer).WxAppletQuery(ctx, req.(*v1.WxAppletQueryRequest))
  261. }
  262. return interceptor(ctx, in, info, handler)
  263. }
  264. func _PropertyThirdparty_WxPublicMsgSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  265. in := new(v1.WxPublicMsgSendRequest)
  266. if err := dec(in); err != nil {
  267. return nil, err
  268. }
  269. if interceptor == nil {
  270. return srv.(PropertyThirdpartyServer).WxPublicMsgSend(ctx, in)
  271. }
  272. info := &grpc.UnaryServerInfo{
  273. Server: srv,
  274. FullMethod: "/pb.service.PropertyThirdparty/WxPublicMsgSend",
  275. }
  276. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  277. return srv.(PropertyThirdpartyServer).WxPublicMsgSend(ctx, req.(*v1.WxPublicMsgSendRequest))
  278. }
  279. return interceptor(ctx, in, info, handler)
  280. }
  281. func _PropertyThirdparty_TencentMsgSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  282. in := new(v1.TencentMsgSendRequest)
  283. if err := dec(in); err != nil {
  284. return nil, err
  285. }
  286. if interceptor == nil {
  287. return srv.(PropertyThirdpartyServer).TencentMsgSend(ctx, in)
  288. }
  289. info := &grpc.UnaryServerInfo{
  290. Server: srv,
  291. FullMethod: "/pb.service.PropertyThirdparty/TencentMsgSend",
  292. }
  293. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  294. return srv.(PropertyThirdpartyServer).TencentMsgSend(ctx, req.(*v1.TencentMsgSendRequest))
  295. }
  296. return interceptor(ctx, in, info, handler)
  297. }
  298. var _PropertyThirdparty_serviceDesc = grpc.ServiceDesc{
  299. ServiceName: "pb.service.PropertyThirdparty",
  300. HandlerType: (*PropertyThirdpartyServer)(nil),
  301. Methods: []grpc.MethodDesc{
  302. {
  303. MethodName: "GetVcode",
  304. Handler: _PropertyThirdparty_GetVcode_Handler,
  305. },
  306. {
  307. MethodName: "CheckVcode",
  308. Handler: _PropertyThirdparty_CheckVcode_Handler,
  309. },
  310. {
  311. MethodName: "WxAppletLoginAuth",
  312. Handler: _PropertyThirdparty_WxAppletLoginAuth_Handler,
  313. },
  314. {
  315. MethodName: "WxAppletPrepay",
  316. Handler: _PropertyThirdparty_WxAppletPrepay_Handler,
  317. },
  318. {
  319. MethodName: "WxAppletQuery",
  320. Handler: _PropertyThirdparty_WxAppletQuery_Handler,
  321. },
  322. {
  323. MethodName: "WxPublicMsgSend",
  324. Handler: _PropertyThirdparty_WxPublicMsgSend_Handler,
  325. },
  326. {
  327. MethodName: "TencentMsgSend",
  328. Handler: _PropertyThirdparty_TencentMsgSend_Handler,
  329. },
  330. },
  331. Streams: []grpc.StreamDesc{},
  332. Metadata: "thirdparty_service.proto",
  333. }