thirdparty_service.pb.go 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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 "smart-government-management/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. // 230 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, 0x62, 0x2a, 0x48, 0x92, 0x12, 0x2e, 0x33, 0xd4, 0x47, 0x28, 0x80,
  32. 0x48, 0x18, 0x4d, 0x64, 0xe2, 0x12, 0x0e, 0xce, 0x4d, 0x2c, 0x2a, 0x09, 0xce, 0x2c, 0x49, 0x0d,
  33. 0x81, 0xcb, 0x0a, 0x99, 0x70, 0x71, 0xb8, 0xa7, 0x96, 0x84, 0x25, 0xe7, 0xa7, 0xa4, 0x0a, 0x09,
  34. 0xeb, 0x95, 0x19, 0xea, 0xc1, 0x78, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x52, 0x82, 0xa8,
  35. 0x82, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42, 0x56, 0x5c, 0x5c, 0xce, 0x19, 0xa9, 0xc9, 0xd9, 0x10,
  36. 0x7d, 0xa2, 0x20, 0x25, 0x08, 0x3e, 0x4c, 0xa7, 0x30, 0xba, 0x30, 0x44, 0xaf, 0x39, 0x17, 0x67,
  37. 0x70, 0x6a, 0x5e, 0x8a, 0x63, 0x4e, 0x62, 0x51, 0xae, 0x90, 0x08, 0x48, 0x0d, 0x9c, 0x0b, 0xd3,
  38. 0x29, 0x84, 0x26, 0x0a, 0xd1, 0xe8, 0xcf, 0x25, 0x08, 0x12, 0x0b, 0xc9, 0x28, 0xca, 0x2f, 0x4d,
  39. 0xcf, 0x08, 0x4b, 0x2d, 0xca, 0x4c, 0xab, 0x14, 0x92, 0x81, 0x29, 0x45, 0x11, 0x86, 0x19, 0x24,
  40. 0x85, 0x43, 0x16, 0x6c, 0xa0, 0x93, 0x42, 0x94, 0x5c, 0x31, 0x28, 0x48, 0x74, 0xd3, 0xf3, 0xcb,
  41. 0x52, 0x8b, 0xf2, 0x72, 0x53, 0xf3, 0x4a, 0x74, 0x73, 0x13, 0xf3, 0x12, 0xd3, 0x53, 0x41, 0x4c,
  42. 0xfd, 0x82, 0xa4, 0x24, 0x36, 0x70, 0xe0, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x07, 0x27,
  43. 0xe7, 0x59, 0x71, 0x01, 0x00, 0x00,
  44. }
  45. // Reference imports to suppress errors if they are not otherwise used.
  46. var _ context.Context
  47. var _ grpc.ClientConnInterface
  48. // This is a compile-time assertion to ensure that this generated file
  49. // is compatible with the grpc package it is being compiled against.
  50. const _ = grpc.SupportPackageIsVersion6
  51. // SmartSiteThirdpartyClient is the client API for SmartSiteThirdparty service.
  52. //
  53. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  54. type SmartSiteThirdpartyClient interface {
  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. // 发送告警
  59. SendAlarm(ctx context.Context, in *v1.SendAlarmRequest, opts ...grpc.CallOption) (*v1.SendAlarmReply, error)
  60. // 发送认证通过
  61. SendThroughVerify(ctx context.Context, in *v1.SendThroughVerifyRequest, opts ...grpc.CallOption) (*v1.SendThroughVerifyReply, error)
  62. }
  63. type smartSiteThirdpartyClient struct {
  64. cc grpc.ClientConnInterface
  65. }
  66. func NewSmartSiteThirdpartyClient(cc grpc.ClientConnInterface) SmartSiteThirdpartyClient {
  67. return &smartSiteThirdpartyClient{cc}
  68. }
  69. func (c *smartSiteThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
  70. out := new(v1.GetVcodeReply)
  71. err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/GetVcode", in, out, opts...)
  72. if err != nil {
  73. return nil, err
  74. }
  75. return out, nil
  76. }
  77. func (c *smartSiteThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
  78. out := new(v1.CheckVcodeReply)
  79. err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/CheckVcode", in, out, opts...)
  80. if err != nil {
  81. return nil, err
  82. }
  83. return out, nil
  84. }
  85. func (c *smartSiteThirdpartyClient) SendAlarm(ctx context.Context, in *v1.SendAlarmRequest, opts ...grpc.CallOption) (*v1.SendAlarmReply, error) {
  86. out := new(v1.SendAlarmReply)
  87. err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/SendAlarm", in, out, opts...)
  88. if err != nil {
  89. return nil, err
  90. }
  91. return out, nil
  92. }
  93. func (c *smartSiteThirdpartyClient) SendThroughVerify(ctx context.Context, in *v1.SendThroughVerifyRequest, opts ...grpc.CallOption) (*v1.SendThroughVerifyReply, error) {
  94. out := new(v1.SendThroughVerifyReply)
  95. err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/SendThroughVerify", in, out, opts...)
  96. if err != nil {
  97. return nil, err
  98. }
  99. return out, nil
  100. }
  101. // SmartSiteThirdpartyServer is the server API for SmartSiteThirdparty service.
  102. type SmartSiteThirdpartyServer interface {
  103. GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
  104. // 手机号验证码验证
  105. CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
  106. // 发送告警
  107. SendAlarm(context.Context, *v1.SendAlarmRequest) (*v1.SendAlarmReply, error)
  108. // 发送认证通过
  109. SendThroughVerify(context.Context, *v1.SendThroughVerifyRequest) (*v1.SendThroughVerifyReply, error)
  110. }
  111. // UnimplementedSmartSiteThirdpartyServer can be embedded to have forward compatible implementations.
  112. type UnimplementedSmartSiteThirdpartyServer struct {
  113. }
  114. func (*UnimplementedSmartSiteThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
  115. return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
  116. }
  117. func (*UnimplementedSmartSiteThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
  118. return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
  119. }
  120. func (*UnimplementedSmartSiteThirdpartyServer) SendAlarm(ctx context.Context, req *v1.SendAlarmRequest) (*v1.SendAlarmReply, error) {
  121. return nil, status.Errorf(codes.Unimplemented, "method SendAlarm not implemented")
  122. }
  123. func (*UnimplementedSmartSiteThirdpartyServer) SendThroughVerify(ctx context.Context, req *v1.SendThroughVerifyRequest) (*v1.SendThroughVerifyReply, error) {
  124. return nil, status.Errorf(codes.Unimplemented, "method SendThroughVerify not implemented")
  125. }
  126. func RegisterSmartSiteThirdpartyServer(s *grpc.Server, srv SmartSiteThirdpartyServer) {
  127. s.RegisterService(&_SmartSiteThirdparty_serviceDesc, srv)
  128. }
  129. func _SmartSiteThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  130. in := new(v1.GetVcodeRequest)
  131. if err := dec(in); err != nil {
  132. return nil, err
  133. }
  134. if interceptor == nil {
  135. return srv.(SmartSiteThirdpartyServer).GetVcode(ctx, in)
  136. }
  137. info := &grpc.UnaryServerInfo{
  138. Server: srv,
  139. FullMethod: "/pb.SmartSiteThirdparty/GetVcode",
  140. }
  141. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  142. return srv.(SmartSiteThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
  143. }
  144. return interceptor(ctx, in, info, handler)
  145. }
  146. func _SmartSiteThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  147. in := new(v1.CheckVcodeRequest)
  148. if err := dec(in); err != nil {
  149. return nil, err
  150. }
  151. if interceptor == nil {
  152. return srv.(SmartSiteThirdpartyServer).CheckVcode(ctx, in)
  153. }
  154. info := &grpc.UnaryServerInfo{
  155. Server: srv,
  156. FullMethod: "/pb.SmartSiteThirdparty/CheckVcode",
  157. }
  158. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  159. return srv.(SmartSiteThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
  160. }
  161. return interceptor(ctx, in, info, handler)
  162. }
  163. func _SmartSiteThirdparty_SendAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  164. in := new(v1.SendAlarmRequest)
  165. if err := dec(in); err != nil {
  166. return nil, err
  167. }
  168. if interceptor == nil {
  169. return srv.(SmartSiteThirdpartyServer).SendAlarm(ctx, in)
  170. }
  171. info := &grpc.UnaryServerInfo{
  172. Server: srv,
  173. FullMethod: "/pb.SmartSiteThirdparty/SendAlarm",
  174. }
  175. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  176. return srv.(SmartSiteThirdpartyServer).SendAlarm(ctx, req.(*v1.SendAlarmRequest))
  177. }
  178. return interceptor(ctx, in, info, handler)
  179. }
  180. func _SmartSiteThirdparty_SendThroughVerify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  181. in := new(v1.SendThroughVerifyRequest)
  182. if err := dec(in); err != nil {
  183. return nil, err
  184. }
  185. if interceptor == nil {
  186. return srv.(SmartSiteThirdpartyServer).SendThroughVerify(ctx, in)
  187. }
  188. info := &grpc.UnaryServerInfo{
  189. Server: srv,
  190. FullMethod: "/pb.SmartSiteThirdparty/SendThroughVerify",
  191. }
  192. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  193. return srv.(SmartSiteThirdpartyServer).SendThroughVerify(ctx, req.(*v1.SendThroughVerifyRequest))
  194. }
  195. return interceptor(ctx, in, info, handler)
  196. }
  197. var _SmartSiteThirdparty_serviceDesc = grpc.ServiceDesc{
  198. ServiceName: "pb.SmartSiteThirdparty",
  199. HandlerType: (*SmartSiteThirdpartyServer)(nil),
  200. Methods: []grpc.MethodDesc{
  201. {
  202. MethodName: "GetVcode",
  203. Handler: _SmartSiteThirdparty_GetVcode_Handler,
  204. },
  205. {
  206. MethodName: "CheckVcode",
  207. Handler: _SmartSiteThirdparty_CheckVcode_Handler,
  208. },
  209. {
  210. MethodName: "SendAlarm",
  211. Handler: _SmartSiteThirdparty_SendAlarm_Handler,
  212. },
  213. {
  214. MethodName: "SendThroughVerify",
  215. Handler: _SmartSiteThirdparty_SendThroughVerify_Handler,
  216. },
  217. },
  218. Streams: []grpc.StreamDesc{},
  219. Metadata: "thirdparty_service.proto",
  220. }