thirdparty_management.pb.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: thirdparty_management.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-supplier-management-gateway/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_management.proto", fileDescriptor_f3d34336399aea71)
  26. }
  27. var fileDescriptor_f3d34336399aea71 = []byte{
  28. // 202 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0xc9, 0xc8, 0x2c,
  30. 0x4a, 0x29, 0x48, 0x2c, 0x2a, 0xa9, 0x8c, 0xcf, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0xcd, 0x4d, 0xcd,
  31. 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x92, 0x12, 0x2e, 0x33, 0xd4,
  32. 0x47, 0xa8, 0x81, 0x48, 0x18, 0x1d, 0x60, 0xe4, 0x12, 0x0e, 0xce, 0x4d, 0x2c, 0x2a, 0x09, 0xce,
  33. 0x2c, 0x49, 0x0d, 0x81, 0xcb, 0x0a, 0x99, 0x70, 0x71, 0xb8, 0xa7, 0x96, 0x84, 0x25, 0xe7, 0xa7,
  34. 0xa4, 0x0a, 0x09, 0xeb, 0x95, 0x19, 0xea, 0xc1, 0x78, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25,
  35. 0x52, 0x82, 0xa8, 0x82, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42, 0x56, 0x5c, 0x5c, 0xce, 0x19, 0xa9,
  36. 0xc9, 0xd9, 0x10, 0x7d, 0xa2, 0x20, 0x25, 0x08, 0x3e, 0x4c, 0xa7, 0x30, 0xba, 0x30, 0x44, 0xaf,
  37. 0x39, 0x17, 0x67, 0x70, 0x6a, 0x5e, 0x8a, 0x6b, 0x6e, 0x62, 0x66, 0x8e, 0x90, 0x08, 0x48, 0x0d,
  38. 0x9c, 0x0b, 0xd3, 0x29, 0x84, 0x26, 0x0a, 0xd6, 0xe8, 0xa4, 0x16, 0xa5, 0x52, 0x0c, 0xf2, 0x81,
  39. 0x6e, 0x71, 0x69, 0x41, 0x41, 0x4e, 0x66, 0x6a, 0x91, 0x2e, 0xc2, 0xfb, 0xba, 0xe9, 0x89, 0x25,
  40. 0xa9, 0xe5, 0x89, 0x95, 0xfa, 0x05, 0x49, 0x49, 0x6c, 0x60, 0x1f, 0x1b, 0x03, 0x02, 0x00, 0x00,
  41. 0xff, 0xff, 0x06, 0x23, 0xa8, 0xe2, 0x29, 0x01, 0x00, 0x00,
  42. }
  43. // Reference imports to suppress errors if they are not otherwise used.
  44. var _ context.Context
  45. var _ grpc.ClientConnInterface
  46. // This is a compile-time assertion to ensure that this generated file
  47. // is compatible with the grpc package it is being compiled against.
  48. const _ = grpc.SupportPackageIsVersion6
  49. // SmartSiteThirdpartyClient is the client API for SmartSiteThirdparty service.
  50. //
  51. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  52. type SmartSiteThirdpartyClient interface {
  53. GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error)
  54. // 手机号验证码验证
  55. CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error)
  56. SendEmail(ctx context.Context, in *v1.SendEmailRequest, opts ...grpc.CallOption) (*v1.SendEmailReply, error)
  57. }
  58. type smartSiteThirdpartyClient struct {
  59. cc grpc.ClientConnInterface
  60. }
  61. func NewSmartSiteThirdpartyClient(cc grpc.ClientConnInterface) SmartSiteThirdpartyClient {
  62. return &smartSiteThirdpartyClient{cc}
  63. }
  64. func (c *smartSiteThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
  65. out := new(v1.GetVcodeReply)
  66. err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/GetVcode", in, out, opts...)
  67. if err != nil {
  68. return nil, err
  69. }
  70. return out, nil
  71. }
  72. func (c *smartSiteThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
  73. out := new(v1.CheckVcodeReply)
  74. err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/CheckVcode", in, out, opts...)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return out, nil
  79. }
  80. func (c *smartSiteThirdpartyClient) SendEmail(ctx context.Context, in *v1.SendEmailRequest, opts ...grpc.CallOption) (*v1.SendEmailReply, error) {
  81. out := new(v1.SendEmailReply)
  82. err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/SendEmail", in, out, opts...)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return out, nil
  87. }
  88. // SmartSiteThirdpartyServer is the server API for SmartSiteThirdparty service.
  89. type SmartSiteThirdpartyServer interface {
  90. GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
  91. // 手机号验证码验证
  92. CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
  93. SendEmail(context.Context, *v1.SendEmailRequest) (*v1.SendEmailReply, error)
  94. }
  95. // UnimplementedSmartSiteThirdpartyServer can be embedded to have forward compatible implementations.
  96. type UnimplementedSmartSiteThirdpartyServer struct {
  97. }
  98. func (*UnimplementedSmartSiteThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
  99. return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
  100. }
  101. func (*UnimplementedSmartSiteThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
  102. return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
  103. }
  104. func (*UnimplementedSmartSiteThirdpartyServer) SendEmail(ctx context.Context, req *v1.SendEmailRequest) (*v1.SendEmailReply, error) {
  105. return nil, status.Errorf(codes.Unimplemented, "method SendEmail not implemented")
  106. }
  107. func RegisterSmartSiteThirdpartyServer(s *grpc.Server, srv SmartSiteThirdpartyServer) {
  108. s.RegisterService(&_SmartSiteThirdparty_serviceDesc, srv)
  109. }
  110. func _SmartSiteThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  111. in := new(v1.GetVcodeRequest)
  112. if err := dec(in); err != nil {
  113. return nil, err
  114. }
  115. if interceptor == nil {
  116. return srv.(SmartSiteThirdpartyServer).GetVcode(ctx, in)
  117. }
  118. info := &grpc.UnaryServerInfo{
  119. Server: srv,
  120. FullMethod: "/pb.SmartSiteThirdparty/GetVcode",
  121. }
  122. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  123. return srv.(SmartSiteThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
  124. }
  125. return interceptor(ctx, in, info, handler)
  126. }
  127. func _SmartSiteThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  128. in := new(v1.CheckVcodeRequest)
  129. if err := dec(in); err != nil {
  130. return nil, err
  131. }
  132. if interceptor == nil {
  133. return srv.(SmartSiteThirdpartyServer).CheckVcode(ctx, in)
  134. }
  135. info := &grpc.UnaryServerInfo{
  136. Server: srv,
  137. FullMethod: "/pb.SmartSiteThirdparty/CheckVcode",
  138. }
  139. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  140. return srv.(SmartSiteThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
  141. }
  142. return interceptor(ctx, in, info, handler)
  143. }
  144. func _SmartSiteThirdparty_SendEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  145. in := new(v1.SendEmailRequest)
  146. if err := dec(in); err != nil {
  147. return nil, err
  148. }
  149. if interceptor == nil {
  150. return srv.(SmartSiteThirdpartyServer).SendEmail(ctx, in)
  151. }
  152. info := &grpc.UnaryServerInfo{
  153. Server: srv,
  154. FullMethod: "/pb.SmartSiteThirdparty/SendEmail",
  155. }
  156. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  157. return srv.(SmartSiteThirdpartyServer).SendEmail(ctx, req.(*v1.SendEmailRequest))
  158. }
  159. return interceptor(ctx, in, info, handler)
  160. }
  161. var _SmartSiteThirdparty_serviceDesc = grpc.ServiceDesc{
  162. ServiceName: "pb.SmartSiteThirdparty",
  163. HandlerType: (*SmartSiteThirdpartyServer)(nil),
  164. Methods: []grpc.MethodDesc{
  165. {
  166. MethodName: "GetVcode",
  167. Handler: _SmartSiteThirdparty_GetVcode_Handler,
  168. },
  169. {
  170. MethodName: "CheckVcode",
  171. Handler: _SmartSiteThirdparty_CheckVcode_Handler,
  172. },
  173. {
  174. MethodName: "SendEmail",
  175. Handler: _SmartSiteThirdparty_SendEmail_Handler,
  176. },
  177. },
  178. Streams: []grpc.StreamDesc{},
  179. Metadata: "thirdparty_management.proto",
  180. }