thirdparty_service.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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-company/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. // 244 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x3d, 0x4b, 0x03, 0x41,
  30. 0x10, 0x86, 0xc5, 0x42, 0xc2, 0x34, 0xca, 0x46, 0x43, 0x88, 0x1f, 0x85, 0xbd, 0x17, 0xa2, 0x5d,
  31. 0x2a, 0x3f, 0x0a, 0xab, 0xa0, 0x9c, 0xa2, 0x60, 0x13, 0x6e, 0x37, 0x83, 0x1b, 0x8c, 0xd9, 0x71,
  32. 0x6e, 0x3c, 0xdc, 0xdf, 0xed, 0x1f, 0x10, 0xb2, 0xbb, 0x59, 0x48, 0xbc, 0xf6, 0x79, 0xde, 0xf7,
  33. 0x2d, 0x66, 0xa0, 0x2f, 0x76, 0xce, 0x33, 0xaa, 0x58, 0xfc, 0xb4, 0x46, 0x6e, 0xe6, 0x06, 0x0b,
  34. 0x62, 0x27, 0x4e, 0x01, 0xe9, 0x22, 0x92, 0x41, 0xb7, 0x19, 0x0d, 0x73, 0x30, 0x04, 0x2e, 0x7f,
  35. 0x77, 0x41, 0x3d, 0xb2, 0x23, 0x64, 0xf1, 0xcf, 0x6b, 0xa9, 0xc6, 0xd0, 0xb9, 0x47, 0x79, 0x31,
  36. 0x6e, 0x86, 0xaa, 0x57, 0x90, 0x9e, 0x36, 0xa3, 0x22, 0x81, 0x12, 0xbf, 0xbe, 0xb1, 0x96, 0xc1,
  37. 0xe1, 0x16, 0xa7, 0x85, 0x3f, 0xdf, 0x51, 0xd7, 0x00, 0x77, 0x16, 0xcd, 0x47, 0x68, 0xf7, 0x63,
  38. 0x2a, 0xa3, 0xd4, 0xef, 0xfd, 0x63, 0xc2, 0xc2, 0x03, 0xec, 0xbf, 0xfe, 0x4c, 0x90, 0x8d, 0xad,
  39. 0x96, 0x72, 0x43, 0xb4, 0xf0, 0xea, 0x34, 0x86, 0x37, 0x78, 0xda, 0x3a, 0x6e, 0xd3, 0x61, 0xb0,
  40. 0x84, 0x83, 0x6c, 0x9e, 0xb0, 0x62, 0x63, 0xd5, 0xd9, 0x56, 0x25, 0x88, 0x34, 0x79, 0xd2, 0xea,
  41. 0xc3, 0xe6, 0x18, 0x3a, 0xa5, 0xd3, 0x4e, 0x26, 0xf5, 0xfb, 0xfa, 0x44, 0x09, 0x6c, 0x9e, 0x28,
  42. 0xf3, 0x55, 0xf7, 0xf6, 0xe8, 0xad, 0x4b, 0xf1, 0xe8, 0x17, 0xc6, 0x7d, 0x52, 0xb5, 0xf4, 0x43,
  43. 0xd2, 0x7a, 0x6f, 0xf5, 0x93, 0xab, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x4a, 0x2d, 0x4f,
  44. 0xd0, 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. WxMerchantApply(ctx context.Context, in *v1.WxMerchantApplyRequest, opts ...grpc.CallOption) (*v1.WxMerchantApplyReply, error)
  62. // 微信特约商户进件申请查询
  63. WxMerchantSearch(ctx context.Context, in *v1.WxMerchantSearchRequest, opts ...grpc.CallOption) (*v1.WxMerchantSearchReply, error)
  64. RobotMsg(ctx context.Context, in *v1.RobotMsgRequest, opts ...grpc.CallOption) (*v1.RobotMsgReply, error)
  65. }
  66. type propertyThirdpartyClient struct {
  67. cc grpc.ClientConnInterface
  68. }
  69. func NewPropertyThirdpartyClient(cc grpc.ClientConnInterface) PropertyThirdpartyClient {
  70. return &propertyThirdpartyClient{cc}
  71. }
  72. func (c *propertyThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
  73. out := new(v1.GetVcodeReply)
  74. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/GetVcode", in, out, opts...)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return out, nil
  79. }
  80. func (c *propertyThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
  81. out := new(v1.CheckVcodeReply)
  82. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/CheckVcode", in, out, opts...)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return out, nil
  87. }
  88. func (c *propertyThirdpartyClient) WxMerchantApply(ctx context.Context, in *v1.WxMerchantApplyRequest, opts ...grpc.CallOption) (*v1.WxMerchantApplyReply, error) {
  89. out := new(v1.WxMerchantApplyReply)
  90. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxMerchantApply", in, out, opts...)
  91. if err != nil {
  92. return nil, err
  93. }
  94. return out, nil
  95. }
  96. func (c *propertyThirdpartyClient) WxMerchantSearch(ctx context.Context, in *v1.WxMerchantSearchRequest, opts ...grpc.CallOption) (*v1.WxMerchantSearchReply, error) {
  97. out := new(v1.WxMerchantSearchReply)
  98. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/WxMerchantSearch", in, out, opts...)
  99. if err != nil {
  100. return nil, err
  101. }
  102. return out, nil
  103. }
  104. func (c *propertyThirdpartyClient) RobotMsg(ctx context.Context, in *v1.RobotMsgRequest, opts ...grpc.CallOption) (*v1.RobotMsgReply, error) {
  105. out := new(v1.RobotMsgReply)
  106. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/RobotMsg", in, out, opts...)
  107. if err != nil {
  108. return nil, err
  109. }
  110. return out, nil
  111. }
  112. // PropertyThirdpartyServer is the server API for PropertyThirdparty service.
  113. type PropertyThirdpartyServer interface {
  114. // 获取短信验证码
  115. GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
  116. // 校验短信验证码
  117. CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
  118. // 微信特约商户进件申请
  119. WxMerchantApply(context.Context, *v1.WxMerchantApplyRequest) (*v1.WxMerchantApplyReply, error)
  120. // 微信特约商户进件申请查询
  121. WxMerchantSearch(context.Context, *v1.WxMerchantSearchRequest) (*v1.WxMerchantSearchReply, error)
  122. RobotMsg(context.Context, *v1.RobotMsgRequest) (*v1.RobotMsgReply, error)
  123. }
  124. // UnimplementedPropertyThirdpartyServer can be embedded to have forward compatible implementations.
  125. type UnimplementedPropertyThirdpartyServer struct {
  126. }
  127. func (*UnimplementedPropertyThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
  128. return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
  129. }
  130. func (*UnimplementedPropertyThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
  131. return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
  132. }
  133. func (*UnimplementedPropertyThirdpartyServer) WxMerchantApply(ctx context.Context, req *v1.WxMerchantApplyRequest) (*v1.WxMerchantApplyReply, error) {
  134. return nil, status.Errorf(codes.Unimplemented, "method WxMerchantApply not implemented")
  135. }
  136. func (*UnimplementedPropertyThirdpartyServer) WxMerchantSearch(ctx context.Context, req *v1.WxMerchantSearchRequest) (*v1.WxMerchantSearchReply, error) {
  137. return nil, status.Errorf(codes.Unimplemented, "method WxMerchantSearch not implemented")
  138. }
  139. func (*UnimplementedPropertyThirdpartyServer) RobotMsg(ctx context.Context, req *v1.RobotMsgRequest) (*v1.RobotMsgReply, error) {
  140. return nil, status.Errorf(codes.Unimplemented, "method RobotMsg not implemented")
  141. }
  142. func RegisterPropertyThirdpartyServer(s *grpc.Server, srv PropertyThirdpartyServer) {
  143. s.RegisterService(&_PropertyThirdparty_serviceDesc, srv)
  144. }
  145. func _PropertyThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  146. in := new(v1.GetVcodeRequest)
  147. if err := dec(in); err != nil {
  148. return nil, err
  149. }
  150. if interceptor == nil {
  151. return srv.(PropertyThirdpartyServer).GetVcode(ctx, in)
  152. }
  153. info := &grpc.UnaryServerInfo{
  154. Server: srv,
  155. FullMethod: "/pb.service.PropertyThirdparty/GetVcode",
  156. }
  157. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  158. return srv.(PropertyThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
  159. }
  160. return interceptor(ctx, in, info, handler)
  161. }
  162. func _PropertyThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  163. in := new(v1.CheckVcodeRequest)
  164. if err := dec(in); err != nil {
  165. return nil, err
  166. }
  167. if interceptor == nil {
  168. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, in)
  169. }
  170. info := &grpc.UnaryServerInfo{
  171. Server: srv,
  172. FullMethod: "/pb.service.PropertyThirdparty/CheckVcode",
  173. }
  174. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  175. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
  176. }
  177. return interceptor(ctx, in, info, handler)
  178. }
  179. func _PropertyThirdparty_WxMerchantApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  180. in := new(v1.WxMerchantApplyRequest)
  181. if err := dec(in); err != nil {
  182. return nil, err
  183. }
  184. if interceptor == nil {
  185. return srv.(PropertyThirdpartyServer).WxMerchantApply(ctx, in)
  186. }
  187. info := &grpc.UnaryServerInfo{
  188. Server: srv,
  189. FullMethod: "/pb.service.PropertyThirdparty/WxMerchantApply",
  190. }
  191. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  192. return srv.(PropertyThirdpartyServer).WxMerchantApply(ctx, req.(*v1.WxMerchantApplyRequest))
  193. }
  194. return interceptor(ctx, in, info, handler)
  195. }
  196. func _PropertyThirdparty_WxMerchantSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  197. in := new(v1.WxMerchantSearchRequest)
  198. if err := dec(in); err != nil {
  199. return nil, err
  200. }
  201. if interceptor == nil {
  202. return srv.(PropertyThirdpartyServer).WxMerchantSearch(ctx, in)
  203. }
  204. info := &grpc.UnaryServerInfo{
  205. Server: srv,
  206. FullMethod: "/pb.service.PropertyThirdparty/WxMerchantSearch",
  207. }
  208. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  209. return srv.(PropertyThirdpartyServer).WxMerchantSearch(ctx, req.(*v1.WxMerchantSearchRequest))
  210. }
  211. return interceptor(ctx, in, info, handler)
  212. }
  213. func _PropertyThirdparty_RobotMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  214. in := new(v1.RobotMsgRequest)
  215. if err := dec(in); err != nil {
  216. return nil, err
  217. }
  218. if interceptor == nil {
  219. return srv.(PropertyThirdpartyServer).RobotMsg(ctx, in)
  220. }
  221. info := &grpc.UnaryServerInfo{
  222. Server: srv,
  223. FullMethod: "/pb.service.PropertyThirdparty/RobotMsg",
  224. }
  225. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  226. return srv.(PropertyThirdpartyServer).RobotMsg(ctx, req.(*v1.RobotMsgRequest))
  227. }
  228. return interceptor(ctx, in, info, handler)
  229. }
  230. var _PropertyThirdparty_serviceDesc = grpc.ServiceDesc{
  231. ServiceName: "pb.service.PropertyThirdparty",
  232. HandlerType: (*PropertyThirdpartyServer)(nil),
  233. Methods: []grpc.MethodDesc{
  234. {
  235. MethodName: "GetVcode",
  236. Handler: _PropertyThirdparty_GetVcode_Handler,
  237. },
  238. {
  239. MethodName: "CheckVcode",
  240. Handler: _PropertyThirdparty_CheckVcode_Handler,
  241. },
  242. {
  243. MethodName: "WxMerchantApply",
  244. Handler: _PropertyThirdparty_WxMerchantApply_Handler,
  245. },
  246. {
  247. MethodName: "WxMerchantSearch",
  248. Handler: _PropertyThirdparty_WxMerchantSearch_Handler,
  249. },
  250. {
  251. MethodName: "RobotMsg",
  252. Handler: _PropertyThirdparty_RobotMsg_Handler,
  253. },
  254. },
  255. Streams: []grpc.StreamDesc{},
  256. Metadata: "thirdparty_service.proto",
  257. }