thirdparty_service.pb.go 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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-system/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. // 218 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0xc9, 0xc8, 0x2c,
  30. 0x4a, 0x29, 0x48, 0x2c, 0x2a, 0xa9, 0x8c, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b,
  31. 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0x09, 0x97, 0x19, 0xea,
  32. 0x23, 0x14, 0x42, 0x14, 0x18, 0xcd, 0x61, 0xe2, 0x12, 0x0a, 0x28, 0xca, 0x2f, 0x48, 0x2d, 0x2a,
  33. 0xa9, 0x0c, 0x81, 0x4b, 0x0a, 0x59, 0x71, 0x71, 0xb8, 0xa7, 0x96, 0x84, 0x25, 0xe7, 0xa7, 0xa4,
  34. 0x0a, 0x89, 0xe9, 0x15, 0x24, 0xc5, 0x97, 0x19, 0xea, 0xc1, 0x04, 0x82, 0x52, 0x0b, 0x4b, 0x53,
  35. 0x8b, 0x4b, 0xa4, 0x44, 0x30, 0xc4, 0x0b, 0x72, 0x2a, 0x95, 0x18, 0x84, 0x1c, 0xb8, 0xb8, 0x9c,
  36. 0x33, 0x52, 0x93, 0xb3, 0x21, 0xba, 0x25, 0xa0, 0xaa, 0x10, 0x42, 0x30, 0xfd, 0x62, 0x58, 0x64,
  37. 0x20, 0x26, 0xf8, 0x70, 0xf1, 0xf9, 0x17, 0xa4, 0xe6, 0x79, 0xe6, 0x06, 0xa5, 0xa6, 0x67, 0x16,
  38. 0x97, 0xa4, 0x16, 0x09, 0xc9, 0x40, 0xd5, 0xa2, 0x0a, 0xc3, 0x4c, 0x92, 0xc2, 0x21, 0x0b, 0x31,
  39. 0xcd, 0x8a, 0x8b, 0x23, 0x28, 0x3f, 0x29, 0xbf, 0xc4, 0xb7, 0x38, 0x1d, 0xee, 0x17, 0x98, 0x00,
  40. 0xba, 0x5f, 0x10, 0xe2, 0x60, 0xbd, 0x4e, 0x22, 0x51, 0x42, 0x05, 0xd0, 0xd0, 0xd1, 0x2d, 0xae,
  41. 0x2c, 0x2e, 0x49, 0xcd, 0xd5, 0x2f, 0x48, 0x4a, 0x62, 0x03, 0x87, 0x9d, 0x31, 0x20, 0x00, 0x00,
  42. 0xff, 0xff, 0xb4, 0x35, 0x01, 0x58, 0x78, 0x01, 0x00, 0x00,
  43. }
  44. // Reference imports to suppress errors if they are not otherwise used.
  45. var _ context.Context
  46. var _ grpc.ClientConnInterface
  47. // This is a compile-time assertion to ensure that this generated file
  48. // is compatible with the grpc package it is being compiled against.
  49. const _ = grpc.SupportPackageIsVersion6
  50. // PropertyThirdpartyClient is the client API for PropertyThirdparty service.
  51. //
  52. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  53. type PropertyThirdpartyClient interface {
  54. // 获取短信验证码
  55. GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error)
  56. // 校验短信验证码
  57. CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error)
  58. // openIM 注册用户
  59. OpenImRegister(ctx context.Context, in *v1.OpenImRegisterRequest, opts ...grpc.CallOption) (*v1.OpenImRegisterReply, error)
  60. RobotMsg(ctx context.Context, in *v1.RobotMsgRequest, opts ...grpc.CallOption) (*v1.RobotMsgReply, error)
  61. }
  62. type propertyThirdpartyClient struct {
  63. cc grpc.ClientConnInterface
  64. }
  65. func NewPropertyThirdpartyClient(cc grpc.ClientConnInterface) PropertyThirdpartyClient {
  66. return &propertyThirdpartyClient{cc}
  67. }
  68. func (c *propertyThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
  69. out := new(v1.GetVcodeReply)
  70. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/GetVcode", in, out, opts...)
  71. if err != nil {
  72. return nil, err
  73. }
  74. return out, nil
  75. }
  76. func (c *propertyThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
  77. out := new(v1.CheckVcodeReply)
  78. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/CheckVcode", in, out, opts...)
  79. if err != nil {
  80. return nil, err
  81. }
  82. return out, nil
  83. }
  84. func (c *propertyThirdpartyClient) OpenImRegister(ctx context.Context, in *v1.OpenImRegisterRequest, opts ...grpc.CallOption) (*v1.OpenImRegisterReply, error) {
  85. out := new(v1.OpenImRegisterReply)
  86. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImRegister", in, out, opts...)
  87. if err != nil {
  88. return nil, err
  89. }
  90. return out, nil
  91. }
  92. func (c *propertyThirdpartyClient) RobotMsg(ctx context.Context, in *v1.RobotMsgRequest, opts ...grpc.CallOption) (*v1.RobotMsgReply, error) {
  93. out := new(v1.RobotMsgReply)
  94. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/RobotMsg", in, out, opts...)
  95. if err != nil {
  96. return nil, err
  97. }
  98. return out, nil
  99. }
  100. // PropertyThirdpartyServer is the server API for PropertyThirdparty service.
  101. type PropertyThirdpartyServer interface {
  102. // 获取短信验证码
  103. GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
  104. // 校验短信验证码
  105. CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
  106. // openIM 注册用户
  107. OpenImRegister(context.Context, *v1.OpenImRegisterRequest) (*v1.OpenImRegisterReply, error)
  108. RobotMsg(context.Context, *v1.RobotMsgRequest) (*v1.RobotMsgReply, error)
  109. }
  110. // UnimplementedPropertyThirdpartyServer can be embedded to have forward compatible implementations.
  111. type UnimplementedPropertyThirdpartyServer struct {
  112. }
  113. func (*UnimplementedPropertyThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
  114. return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
  115. }
  116. func (*UnimplementedPropertyThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
  117. return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
  118. }
  119. func (*UnimplementedPropertyThirdpartyServer) OpenImRegister(ctx context.Context, req *v1.OpenImRegisterRequest) (*v1.OpenImRegisterReply, error) {
  120. return nil, status.Errorf(codes.Unimplemented, "method OpenImRegister not implemented")
  121. }
  122. func (*UnimplementedPropertyThirdpartyServer) RobotMsg(ctx context.Context, req *v1.RobotMsgRequest) (*v1.RobotMsgReply, error) {
  123. return nil, status.Errorf(codes.Unimplemented, "method RobotMsg not implemented")
  124. }
  125. func RegisterPropertyThirdpartyServer(s *grpc.Server, srv PropertyThirdpartyServer) {
  126. s.RegisterService(&_PropertyThirdparty_serviceDesc, srv)
  127. }
  128. func _PropertyThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  129. in := new(v1.GetVcodeRequest)
  130. if err := dec(in); err != nil {
  131. return nil, err
  132. }
  133. if interceptor == nil {
  134. return srv.(PropertyThirdpartyServer).GetVcode(ctx, in)
  135. }
  136. info := &grpc.UnaryServerInfo{
  137. Server: srv,
  138. FullMethod: "/pb.service.PropertyThirdparty/GetVcode",
  139. }
  140. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  141. return srv.(PropertyThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
  142. }
  143. return interceptor(ctx, in, info, handler)
  144. }
  145. func _PropertyThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  146. in := new(v1.CheckVcodeRequest)
  147. if err := dec(in); err != nil {
  148. return nil, err
  149. }
  150. if interceptor == nil {
  151. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, in)
  152. }
  153. info := &grpc.UnaryServerInfo{
  154. Server: srv,
  155. FullMethod: "/pb.service.PropertyThirdparty/CheckVcode",
  156. }
  157. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  158. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
  159. }
  160. return interceptor(ctx, in, info, handler)
  161. }
  162. func _PropertyThirdparty_OpenImRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  163. in := new(v1.OpenImRegisterRequest)
  164. if err := dec(in); err != nil {
  165. return nil, err
  166. }
  167. if interceptor == nil {
  168. return srv.(PropertyThirdpartyServer).OpenImRegister(ctx, in)
  169. }
  170. info := &grpc.UnaryServerInfo{
  171. Server: srv,
  172. FullMethod: "/pb.service.PropertyThirdparty/OpenImRegister",
  173. }
  174. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  175. return srv.(PropertyThirdpartyServer).OpenImRegister(ctx, req.(*v1.OpenImRegisterRequest))
  176. }
  177. return interceptor(ctx, in, info, handler)
  178. }
  179. func _PropertyThirdparty_RobotMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  180. in := new(v1.RobotMsgRequest)
  181. if err := dec(in); err != nil {
  182. return nil, err
  183. }
  184. if interceptor == nil {
  185. return srv.(PropertyThirdpartyServer).RobotMsg(ctx, in)
  186. }
  187. info := &grpc.UnaryServerInfo{
  188. Server: srv,
  189. FullMethod: "/pb.service.PropertyThirdparty/RobotMsg",
  190. }
  191. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  192. return srv.(PropertyThirdpartyServer).RobotMsg(ctx, req.(*v1.RobotMsgRequest))
  193. }
  194. return interceptor(ctx, in, info, handler)
  195. }
  196. var _PropertyThirdparty_serviceDesc = grpc.ServiceDesc{
  197. ServiceName: "pb.service.PropertyThirdparty",
  198. HandlerType: (*PropertyThirdpartyServer)(nil),
  199. Methods: []grpc.MethodDesc{
  200. {
  201. MethodName: "GetVcode",
  202. Handler: _PropertyThirdparty_GetVcode_Handler,
  203. },
  204. {
  205. MethodName: "CheckVcode",
  206. Handler: _PropertyThirdparty_CheckVcode_Handler,
  207. },
  208. {
  209. MethodName: "OpenImRegister",
  210. Handler: _PropertyThirdparty_OpenImRegister_Handler,
  211. },
  212. {
  213. MethodName: "RobotMsg",
  214. Handler: _PropertyThirdparty_RobotMsg_Handler,
  215. },
  216. },
  217. Streams: []grpc.StreamDesc{},
  218. Metadata: "thirdparty_service.proto",
  219. }