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-enterprise-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. // 231 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x4f, 0x4b, 0x03, 0x31,
  30. 0x10, 0xc5, 0xa5, 0x07, 0xd1, 0xdc, 0x9a, 0x28, 0xc8, 0x22, 0x22, 0xde, 0xbb, 0xa5, 0x2a, 0x08,
  31. 0xde, 0xd4, 0x83, 0x47, 0xc1, 0x2d, 0x3d, 0x78, 0x91, 0xec, 0xee, 0xd8, 0x04, 0x9b, 0x3f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 0x06,
  43. 0x24, 0xe1, 0x18, 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. }