123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: thirdparty_management.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- v1 "smart-enterprise-management-gateway/pb/v1"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- func init() {
- proto.RegisterFile("thirdparty_management.proto", fileDescriptor_f3d34336399aea71)
- }
- var fileDescriptor_f3d34336399aea71 = []byte{
- // 204 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0xc9, 0xc8, 0x2c,
- 0x4a, 0x29, 0x48, 0x2c, 0x2a, 0xa9, 0x8c, 0xcf, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0xcd, 0x4d, 0xcd,
- 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x92, 0x12, 0x2e, 0x33, 0xd4,
- 0x47, 0xa8, 0x81, 0x48, 0x18, 0x1d, 0x60, 0xe4, 0x12, 0x0e, 0xce, 0x4d, 0x2c, 0x2a, 0x09, 0xce,
- 0x2c, 0x49, 0x0d, 0x81, 0xcb, 0x0a, 0x99, 0x70, 0x71, 0xb8, 0xa7, 0x96, 0x84, 0x25, 0xe7, 0xa7,
- 0xa4, 0x0a, 0x09, 0xeb, 0x95, 0x19, 0xea, 0xc1, 0x78, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25,
- 0x52, 0x82, 0xa8, 0x82, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42, 0x56, 0x5c, 0x5c, 0xce, 0x19, 0xa9,
- 0xc9, 0xd9, 0x10, 0x7d, 0xa2, 0x20, 0x25, 0x08, 0x3e, 0x4c, 0xa7, 0x30, 0xba, 0x30, 0x44, 0xaf,
- 0x39, 0x17, 0x67, 0x70, 0x6a, 0x5e, 0x8a, 0x6b, 0x6e, 0x62, 0x66, 0x8e, 0x90, 0x08, 0x48, 0x0d,
- 0x9c, 0x0b, 0xd3, 0x29, 0x84, 0x26, 0x0a, 0xd6, 0xe8, 0xa4, 0x11, 0xa5, 0x56, 0x0c, 0xf2, 0x81,
- 0x6e, 0x6a, 0x5e, 0x49, 0x6a, 0x51, 0x41, 0x51, 0x66, 0x71, 0xaa, 0x2e, 0x22, 0x00, 0x74, 0xd3,
- 0x13, 0x4b, 0x52, 0xcb, 0x13, 0x2b, 0xf5, 0x0b, 0x92, 0x92, 0xd8, 0xc0, 0x7e, 0x36, 0x06, 0x04,
- 0x00, 0x00, 0xff, 0xff, 0x4d, 0x57, 0xad, 0xed, 0x2b, 0x01, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // SmartSiteThirdpartyClient is the client API for SmartSiteThirdparty service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type SmartSiteThirdpartyClient interface {
- GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error)
- // 手机号验证码验证
- CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error)
- SendEmail(ctx context.Context, in *v1.SendEmailRequest, opts ...grpc.CallOption) (*v1.SendEmailReply, error)
- }
- type smartSiteThirdpartyClient struct {
- cc grpc.ClientConnInterface
- }
- func NewSmartSiteThirdpartyClient(cc grpc.ClientConnInterface) SmartSiteThirdpartyClient {
- return &smartSiteThirdpartyClient{cc}
- }
- func (c *smartSiteThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
- out := new(v1.GetVcodeReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/GetVcode", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
- out := new(v1.CheckVcodeReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/CheckVcode", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteThirdpartyClient) SendEmail(ctx context.Context, in *v1.SendEmailRequest, opts ...grpc.CallOption) (*v1.SendEmailReply, error) {
- out := new(v1.SendEmailReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/SendEmail", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // SmartSiteThirdpartyServer is the server API for SmartSiteThirdparty service.
- type SmartSiteThirdpartyServer interface {
- GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
- // 手机号验证码验证
- CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
- SendEmail(context.Context, *v1.SendEmailRequest) (*v1.SendEmailReply, error)
- }
- // UnimplementedSmartSiteThirdpartyServer can be embedded to have forward compatible implementations.
- type UnimplementedSmartSiteThirdpartyServer struct {
- }
- func (*UnimplementedSmartSiteThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
- }
- func (*UnimplementedSmartSiteThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
- }
- func (*UnimplementedSmartSiteThirdpartyServer) SendEmail(ctx context.Context, req *v1.SendEmailRequest) (*v1.SendEmailReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SendEmail not implemented")
- }
- func RegisterSmartSiteThirdpartyServer(s *grpc.Server, srv SmartSiteThirdpartyServer) {
- s.RegisterService(&_SmartSiteThirdparty_serviceDesc, srv)
- }
- func _SmartSiteThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GetVcodeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteThirdpartyServer).GetVcode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteThirdparty/GetVcode",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CheckVcodeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteThirdpartyServer).CheckVcode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteThirdparty/CheckVcode",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteThirdparty_SendEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SendEmailRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteThirdpartyServer).SendEmail(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteThirdparty/SendEmail",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteThirdpartyServer).SendEmail(ctx, req.(*v1.SendEmailRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _SmartSiteThirdparty_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.SmartSiteThirdparty",
- HandlerType: (*SmartSiteThirdpartyServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GetVcode",
- Handler: _SmartSiteThirdparty_GetVcode_Handler,
- },
- {
- MethodName: "CheckVcode",
- Handler: _SmartSiteThirdparty_CheckVcode_Handler,
- },
- {
- MethodName: "SendEmail",
- Handler: _SmartSiteThirdparty_SendEmail_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "thirdparty_management.proto",
- }
|