| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT.package accountimport (	context "context"	grpc "google.golang.org/grpc"	codes "google.golang.org/grpc/codes"	status "google.golang.org/grpc/status")// This is a compile-time assertion to ensure that this generated file// is compatible with the grpc package it is being compiled against.// Requires gRPC-Go v1.32.0 or later.const _ = grpc.SupportPackageIsVersion7// AccountClient is the client API for Account service.//// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.type AccountClient interface {	DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error)	Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error)	GetIdentityByOpenID(ctx context.Context, in *OpenIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)}type accountClient struct {	cc grpc.ClientConnInterface}func NewAccountClient(cc grpc.ClientConnInterface) AccountClient {	return &accountClient{cc}}func (c *accountClient) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error) {	out := new(TokenReply)	err := c.cc.Invoke(ctx, "/api.account.Account/DebugLogin", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *accountClient) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error) {	out := new(TokenReply)	err := c.cc.Invoke(ctx, "/api.account.Account/Authorization", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *accountClient) GetIdentityByOpenID(ctx context.Context, in *OpenIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {	out := new(IdentityInfo)	err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByOpenID", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}// AccountServer is the server API for Account service.// All implementations must embed UnimplementedAccountServer// for forward compatibilitytype AccountServer interface {	DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)	Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)	GetIdentityByOpenID(context.Context, *OpenIDRequest) (*IdentityInfo, error)	mustEmbedUnimplementedAccountServer()}// UnimplementedAccountServer must be embedded to have forward compatible implementations.type UnimplementedAccountServer struct {}func (UnimplementedAccountServer) DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method DebugLogin not implemented")}func (UnimplementedAccountServer) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented")}func (UnimplementedAccountServer) GetIdentityByOpenID(context.Context, *OpenIDRequest) (*IdentityInfo, error) {	return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenID not implemented")}func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {}// UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.// Use of this interface is not recommended, as added methods to AccountServer will// result in compilation errors.type UnsafeAccountServer interface {	mustEmbedUnimplementedAccountServer()}func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) {	s.RegisterService(&Account_ServiceDesc, srv)}func _Account_DebugLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(DebugLoginRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(AccountServer).DebugLogin(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.account.Account/DebugLogin",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(AccountServer).DebugLogin(ctx, req.(*DebugLoginRequest))	}	return interceptor(ctx, in, info, handler)}func _Account_Authorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(AuthorizationRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(AccountServer).Authorization(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.account.Account/Authorization",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(AccountServer).Authorization(ctx, req.(*AuthorizationRequest))	}	return interceptor(ctx, in, info, handler)}func _Account_GetIdentityByOpenID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(OpenIDRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(AccountServer).GetIdentityByOpenID(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.account.Account/GetIdentityByOpenID",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(AccountServer).GetIdentityByOpenID(ctx, req.(*OpenIDRequest))	}	return interceptor(ctx, in, info, handler)}// Account_ServiceDesc is the grpc.ServiceDesc for Account service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)var Account_ServiceDesc = grpc.ServiceDesc{	ServiceName: "api.account.Account",	HandlerType: (*AccountServer)(nil),	Methods: []grpc.MethodDesc{		{			MethodName: "DebugLogin",			Handler:    _Account_DebugLogin_Handler,		},		{			MethodName: "Authorization",			Handler:    _Account_Authorization_Handler,		},		{			MethodName: "GetIdentityByOpenID",			Handler:    _Account_GetIdentityByOpenID_Handler,		},	},	Streams:  []grpc.StreamDesc{},	Metadata: "account.proto",}
 |