thirdparty_service.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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/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. // 273 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xc1, 0x4b, 0xc3, 0x30,
  30. 0x14, 0xc6, 0x05, 0x41, 0x24, 0x07, 0xc5, 0xa8, 0x73, 0x54, 0x45, 0xf0, 0x6e, 0xc7, 0xf4, 0xe6,
  31. 0xc9, 0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 0x43, 0x26, 0x8c, 0x05, 0x4d, 0x2f, 0xfc, 0xa0, 0x89, 0x83, 0x2e, 0xea, 0x48, 0x5b,
  43. 0xe7, 0xbd, 0x98, 0xec, 0x15, 0x64, 0xfb, 0x3c, 0xcf, 0xbb, 0xce, 0xdb, 0xc6, 0x1b, 0xe1, 0xe3,
  44. 0xd9, 0xc7, 0x29, 0xfa, 0xd7, 0xde, 0x70, 0x55, 0x18, 0xe0, 0x2a, 0x4f, 0x07, 0xc8, 0xd8, 0xde,
  45. 0xe6, 0xf7, 0x77, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xad, 0x95, 0x57, 0x95, 0x38, 0x02, 0x00,
  46. 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. // 获取公众号unionid
  65. WxPublicUnionId(ctx context.Context, in *v1.WxPublicUnionIdRequest, opts ...grpc.CallOption) (*v1.WxPublicUnionIdReply, error)
  66. // openIM 注册用户
  67. OpenImRegister(ctx context.Context, in *v1.OpenImRegisterRequest, opts ...grpc.CallOption) (*v1.OpenImRegisterReply, error)
  68. // 公众号推送消息
  69. WxPublicMsgSend(ctx context.Context, in *v1.WxPublicMsgSendRequest, opts ...grpc.CallOption) (*v1.WxPublicMsgSendReply, error)
  70. }
  71. type propertyThirdpartyClient struct {
  72. cc grpc.ClientConnInterface
  73. }
  74. func NewPropertyThirdpartyClient(cc grpc.ClientConnInterface) PropertyThirdpartyClient {
  75. return &propertyThirdpartyClient{cc}
  76. }
  77. func (c *propertyThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
  78. out := new(v1.GetVcodeReply)
  79. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/GetVcode", in, out, opts...)
  80. if err != nil {
  81. return nil, err
  82. }
  83. return out, nil
  84. }
  85. func (c *propertyThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
  86. out := new(v1.CheckVcodeReply)
  87. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/CheckVcode", in, out, opts...)
  88. if err != nil {
  89. return nil, err
  90. }
  91. return out, nil
  92. }
  93. func (c *propertyThirdpartyClient) WxAppletLoginAuth(ctx context.Context, in *v1.WxAppletLoginAuthRequest, opts ...grpc.CallOption) (*v1.WxAppletLoginAuthReply, error) {
  94. out := new(v1.WxAppletLoginAuthReply)
  95. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxAppletLoginAuth", in, out, opts...)
  96. if err != nil {
  97. return nil, err
  98. }
  99. return out, nil
  100. }
  101. func (c *propertyThirdpartyClient) WxPublicUnionId(ctx context.Context, in *v1.WxPublicUnionIdRequest, opts ...grpc.CallOption) (*v1.WxPublicUnionIdReply, error) {
  102. out := new(v1.WxPublicUnionIdReply)
  103. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxPublicUnionId", in, out, opts...)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return out, nil
  108. }
  109. func (c *propertyThirdpartyClient) OpenImRegister(ctx context.Context, in *v1.OpenImRegisterRequest, opts ...grpc.CallOption) (*v1.OpenImRegisterReply, error) {
  110. out := new(v1.OpenImRegisterReply)
  111. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImRegister", in, out, opts...)
  112. if err != nil {
  113. return nil, err
  114. }
  115. return out, nil
  116. }
  117. func (c *propertyThirdpartyClient) WxPublicMsgSend(ctx context.Context, in *v1.WxPublicMsgSendRequest, opts ...grpc.CallOption) (*v1.WxPublicMsgSendReply, error) {
  118. out := new(v1.WxPublicMsgSendReply)
  119. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxPublicMsgSend", in, out, opts...)
  120. if err != nil {
  121. return nil, err
  122. }
  123. return out, nil
  124. }
  125. // PropertyThirdpartyServer is the server API for PropertyThirdparty service.
  126. type PropertyThirdpartyServer interface {
  127. // 获取短信验证码
  128. GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
  129. // 校验短信验证码
  130. CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
  131. // 微信小程序登录验证
  132. WxAppletLoginAuth(context.Context, *v1.WxAppletLoginAuthRequest) (*v1.WxAppletLoginAuthReply, error)
  133. // 获取公众号unionid
  134. WxPublicUnionId(context.Context, *v1.WxPublicUnionIdRequest) (*v1.WxPublicUnionIdReply, error)
  135. // openIM 注册用户
  136. OpenImRegister(context.Context, *v1.OpenImRegisterRequest) (*v1.OpenImRegisterReply, error)
  137. // 公众号推送消息
  138. WxPublicMsgSend(context.Context, *v1.WxPublicMsgSendRequest) (*v1.WxPublicMsgSendReply, error)
  139. }
  140. // UnimplementedPropertyThirdpartyServer can be embedded to have forward compatible implementations.
  141. type UnimplementedPropertyThirdpartyServer struct {
  142. }
  143. func (*UnimplementedPropertyThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
  144. return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
  145. }
  146. func (*UnimplementedPropertyThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
  147. return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
  148. }
  149. func (*UnimplementedPropertyThirdpartyServer) WxAppletLoginAuth(ctx context.Context, req *v1.WxAppletLoginAuthRequest) (*v1.WxAppletLoginAuthReply, error) {
  150. return nil, status.Errorf(codes.Unimplemented, "method WxAppletLoginAuth not implemented")
  151. }
  152. func (*UnimplementedPropertyThirdpartyServer) WxPublicUnionId(ctx context.Context, req *v1.WxPublicUnionIdRequest) (*v1.WxPublicUnionIdReply, error) {
  153. return nil, status.Errorf(codes.Unimplemented, "method WxPublicUnionId not implemented")
  154. }
  155. func (*UnimplementedPropertyThirdpartyServer) OpenImRegister(ctx context.Context, req *v1.OpenImRegisterRequest) (*v1.OpenImRegisterReply, error) {
  156. return nil, status.Errorf(codes.Unimplemented, "method OpenImRegister not implemented")
  157. }
  158. func (*UnimplementedPropertyThirdpartyServer) WxPublicMsgSend(ctx context.Context, req *v1.WxPublicMsgSendRequest) (*v1.WxPublicMsgSendReply, error) {
  159. return nil, status.Errorf(codes.Unimplemented, "method WxPublicMsgSend not implemented")
  160. }
  161. func RegisterPropertyThirdpartyServer(s *grpc.Server, srv PropertyThirdpartyServer) {
  162. s.RegisterService(&_PropertyThirdparty_serviceDesc, srv)
  163. }
  164. func _PropertyThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  165. in := new(v1.GetVcodeRequest)
  166. if err := dec(in); err != nil {
  167. return nil, err
  168. }
  169. if interceptor == nil {
  170. return srv.(PropertyThirdpartyServer).GetVcode(ctx, in)
  171. }
  172. info := &grpc.UnaryServerInfo{
  173. Server: srv,
  174. FullMethod: "/pb.service.PropertyThirdparty/GetVcode",
  175. }
  176. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  177. return srv.(PropertyThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
  178. }
  179. return interceptor(ctx, in, info, handler)
  180. }
  181. func _PropertyThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  182. in := new(v1.CheckVcodeRequest)
  183. if err := dec(in); err != nil {
  184. return nil, err
  185. }
  186. if interceptor == nil {
  187. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, in)
  188. }
  189. info := &grpc.UnaryServerInfo{
  190. Server: srv,
  191. FullMethod: "/pb.service.PropertyThirdparty/CheckVcode",
  192. }
  193. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  194. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
  195. }
  196. return interceptor(ctx, in, info, handler)
  197. }
  198. func _PropertyThirdparty_WxAppletLoginAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  199. in := new(v1.WxAppletLoginAuthRequest)
  200. if err := dec(in); err != nil {
  201. return nil, err
  202. }
  203. if interceptor == nil {
  204. return srv.(PropertyThirdpartyServer).WxAppletLoginAuth(ctx, in)
  205. }
  206. info := &grpc.UnaryServerInfo{
  207. Server: srv,
  208. FullMethod: "/pb.service.PropertyThirdparty/WxAppletLoginAuth",
  209. }
  210. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  211. return srv.(PropertyThirdpartyServer).WxAppletLoginAuth(ctx, req.(*v1.WxAppletLoginAuthRequest))
  212. }
  213. return interceptor(ctx, in, info, handler)
  214. }
  215. func _PropertyThirdparty_WxPublicUnionId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  216. in := new(v1.WxPublicUnionIdRequest)
  217. if err := dec(in); err != nil {
  218. return nil, err
  219. }
  220. if interceptor == nil {
  221. return srv.(PropertyThirdpartyServer).WxPublicUnionId(ctx, in)
  222. }
  223. info := &grpc.UnaryServerInfo{
  224. Server: srv,
  225. FullMethod: "/pb.service.PropertyThirdparty/WxPublicUnionId",
  226. }
  227. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  228. return srv.(PropertyThirdpartyServer).WxPublicUnionId(ctx, req.(*v1.WxPublicUnionIdRequest))
  229. }
  230. return interceptor(ctx, in, info, handler)
  231. }
  232. func _PropertyThirdparty_OpenImRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  233. in := new(v1.OpenImRegisterRequest)
  234. if err := dec(in); err != nil {
  235. return nil, err
  236. }
  237. if interceptor == nil {
  238. return srv.(PropertyThirdpartyServer).OpenImRegister(ctx, in)
  239. }
  240. info := &grpc.UnaryServerInfo{
  241. Server: srv,
  242. FullMethod: "/pb.service.PropertyThirdparty/OpenImRegister",
  243. }
  244. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  245. return srv.(PropertyThirdpartyServer).OpenImRegister(ctx, req.(*v1.OpenImRegisterRequest))
  246. }
  247. return interceptor(ctx, in, info, handler)
  248. }
  249. func _PropertyThirdparty_WxPublicMsgSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  250. in := new(v1.WxPublicMsgSendRequest)
  251. if err := dec(in); err != nil {
  252. return nil, err
  253. }
  254. if interceptor == nil {
  255. return srv.(PropertyThirdpartyServer).WxPublicMsgSend(ctx, in)
  256. }
  257. info := &grpc.UnaryServerInfo{
  258. Server: srv,
  259. FullMethod: "/pb.service.PropertyThirdparty/WxPublicMsgSend",
  260. }
  261. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  262. return srv.(PropertyThirdpartyServer).WxPublicMsgSend(ctx, req.(*v1.WxPublicMsgSendRequest))
  263. }
  264. return interceptor(ctx, in, info, handler)
  265. }
  266. var _PropertyThirdparty_serviceDesc = grpc.ServiceDesc{
  267. ServiceName: "pb.service.PropertyThirdparty",
  268. HandlerType: (*PropertyThirdpartyServer)(nil),
  269. Methods: []grpc.MethodDesc{
  270. {
  271. MethodName: "GetVcode",
  272. Handler: _PropertyThirdparty_GetVcode_Handler,
  273. },
  274. {
  275. MethodName: "CheckVcode",
  276. Handler: _PropertyThirdparty_CheckVcode_Handler,
  277. },
  278. {
  279. MethodName: "WxAppletLoginAuth",
  280. Handler: _PropertyThirdparty_WxAppletLoginAuth_Handler,
  281. },
  282. {
  283. MethodName: "WxPublicUnionId",
  284. Handler: _PropertyThirdparty_WxPublicUnionId_Handler,
  285. },
  286. {
  287. MethodName: "OpenImRegister",
  288. Handler: _PropertyThirdparty_OpenImRegister_Handler,
  289. },
  290. {
  291. MethodName: "WxPublicMsgSend",
  292. Handler: _PropertyThirdparty_WxPublicMsgSend_Handler,
  293. },
  294. },
  295. Streams: []grpc.StreamDesc{},
  296. Metadata: "thirdparty_service.proto",
  297. }