// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.22.3 // source: account.proto package account import ( context "context" common "git.ikuban.com/server/pw-protobuf/api/common" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" ) // 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 const ( Account_DebugLogin_FullMethodName = "/api.account.Account/DebugLogin" Account_Authorization_FullMethodName = "/api.account.Account/Authorization" Account_AuthorizationMiniProgram_FullMethodName = "/api.account.Account/AuthorizationMiniProgram" Account_AuthorizationHalfScreenMiniProgram_FullMethodName = "/api.account.Account/AuthorizationHalfScreenMiniProgram" Account_GetUserLoginConfig_FullMethodName = "/api.account.Account/GetUserLoginConfig" Account_GetGetGzhConfig_FullMethodName = "/api.account.Account/GetGetGzhConfig" Account_GetIdentityByOpenIDAndAppID_FullMethodName = "/api.account.Account/GetIdentityByOpenIDAndAppID" Account_GetIdentityByOpenIDAndAppIDAndCreate_FullMethodName = "/api.account.Account/GetIdentityByOpenIDAndAppIDAndCreate" Account_GetIdentifyByAccountID_FullMethodName = "/api.account.Account/GetIdentifyByAccountID" Account_GetIdentifyByAccountIDAndIsSubscribe_FullMethodName = "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribe" Account_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_FullMethodName = "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribeByMiniProgram" Account_FindIdentifyByAccountIDAndIsSubscribe_FullMethodName = "/api.account.Account/FindIdentifyByAccountIDAndIsSubscribe" Account_UserSubscribe_FullMethodName = "/api.account.Account/UserSubscribe" Account_UserUnsubscribe_FullMethodName = "/api.account.Account/UserUnsubscribe" Account_GetUserPhoneByCode_FullMethodName = "/api.account.Account/GetUserPhoneByCode" Account_GetHalfScreenMiniProgramMessage_FullMethodName = "/api.account.Account/GetHalfScreenMiniProgramMessage" ) // 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) AuthorizationMiniProgram(ctx context.Context, in *AuthorizationMiniProgramRequest, opts ...grpc.CallOption) (*MiniProgramTokenReply, error) AuthorizationHalfScreenMiniProgram(ctx context.Context, in *AuthorizationHalfScreenMiniProgramRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 获取用户登录配置 GetUserLoginConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.GetLoginConfigReply, error) // 获取公众号配置 GetGetGzhConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGetGzhConfigReply, error) // 通过openID和appID查询 GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) // 通过openID和appID查询 未查到就创建 GetIdentityByOpenIDAndAppIDAndCreate(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) // 通过accountID获取Identify信息 GetIdentifyByAccountID(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) // 通过accountID获取Identify信息 GetIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) // 通过accountID获取Identify信息 GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) // 通过accountID获取Identify信息 FindIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *FindIdentifyByAccountIDAndIsSubscribeRequest, opts ...grpc.CallOption) (*FindIdentifyByAccountIDAndIsSubscribeReply, error) // 用户关注 UserSubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 用户取关 UserUnsubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 获取用户手机号哦 GetUserPhoneByCode(ctx context.Context, in *GetUserPhoneByCodeRequest, opts ...grpc.CallOption) (*GetUserPhoneByCodeReply, error) // 获取半屏小程序信息 GetHalfScreenMiniProgramMessage(ctx context.Context, in *GetHalfScreenMiniProgramMessageRequest, opts ...grpc.CallOption) (*GetHalfScreenMiniProgramMessageReply, 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, Account_DebugLogin_FullMethodName, 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, Account_Authorization_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) AuthorizationMiniProgram(ctx context.Context, in *AuthorizationMiniProgramRequest, opts ...grpc.CallOption) (*MiniProgramTokenReply, error) { out := new(MiniProgramTokenReply) err := c.cc.Invoke(ctx, Account_AuthorizationMiniProgram_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) AuthorizationHalfScreenMiniProgram(ctx context.Context, in *AuthorizationHalfScreenMiniProgramRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, Account_AuthorizationHalfScreenMiniProgram_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetUserLoginConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.GetLoginConfigReply, error) { out := new(common.GetLoginConfigReply) err := c.cc.Invoke(ctx, Account_GetUserLoginConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetGetGzhConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGetGzhConfigReply, error) { out := new(GetGetGzhConfigReply) err := c.cc.Invoke(ctx, Account_GetGetGzhConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) { out := new(IdentityInfo) err := c.cc.Invoke(ctx, Account_GetIdentityByOpenIDAndAppID_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetIdentityByOpenIDAndAppIDAndCreate(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) { out := new(IdentityInfo) err := c.cc.Invoke(ctx, Account_GetIdentityByOpenIDAndAppIDAndCreate_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetIdentifyByAccountID(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) { out := new(GetIdentifyByAccountIDReply) err := c.cc.Invoke(ctx, Account_GetIdentifyByAccountID_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) { out := new(GetIdentifyByAccountIDReply) err := c.cc.Invoke(ctx, Account_GetIdentifyByAccountIDAndIsSubscribe_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) { out := new(GetIdentifyByAccountIDReply) err := c.cc.Invoke(ctx, Account_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) FindIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *FindIdentifyByAccountIDAndIsSubscribeRequest, opts ...grpc.CallOption) (*FindIdentifyByAccountIDAndIsSubscribeReply, error) { out := new(FindIdentifyByAccountIDAndIsSubscribeReply) err := c.cc.Invoke(ctx, Account_FindIdentifyByAccountIDAndIsSubscribe_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) UserSubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, Account_UserSubscribe_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) UserUnsubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, Account_UserUnsubscribe_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetUserPhoneByCode(ctx context.Context, in *GetUserPhoneByCodeRequest, opts ...grpc.CallOption) (*GetUserPhoneByCodeReply, error) { out := new(GetUserPhoneByCodeReply) err := c.cc.Invoke(ctx, Account_GetUserPhoneByCode_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *accountClient) GetHalfScreenMiniProgramMessage(ctx context.Context, in *GetHalfScreenMiniProgramMessageRequest, opts ...grpc.CallOption) (*GetHalfScreenMiniProgramMessageReply, error) { out := new(GetHalfScreenMiniProgramMessageReply) err := c.cc.Invoke(ctx, Account_GetHalfScreenMiniProgramMessage_FullMethodName, 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 compatibility type AccountServer interface { DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*MiniProgramTokenReply, error) AuthorizationHalfScreenMiniProgram(context.Context, *AuthorizationHalfScreenMiniProgramRequest) (*emptypb.Empty, error) // 获取用户登录配置 GetUserLoginConfig(context.Context, *emptypb.Empty) (*common.GetLoginConfigReply, error) // 获取公众号配置 GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error) // 通过openID和appID查询 GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) // 通过openID和appID查询 未查到就创建 GetIdentityByOpenIDAndAppIDAndCreate(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) // 通过accountID获取Identify信息 GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) // 通过accountID获取Identify信息 GetIdentifyByAccountIDAndIsSubscribe(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) // 通过accountID获取Identify信息 GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) // 通过accountID获取Identify信息 FindIdentifyByAccountIDAndIsSubscribe(context.Context, *FindIdentifyByAccountIDAndIsSubscribeRequest) (*FindIdentifyByAccountIDAndIsSubscribeReply, error) // 用户关注 UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) // 用户取关 UserUnsubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) // 获取用户手机号哦 GetUserPhoneByCode(context.Context, *GetUserPhoneByCodeRequest) (*GetUserPhoneByCodeReply, error) // 获取半屏小程序信息 GetHalfScreenMiniProgramMessage(context.Context, *GetHalfScreenMiniProgramMessageRequest) (*GetHalfScreenMiniProgramMessageReply, 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) AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*MiniProgramTokenReply, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizationMiniProgram not implemented") } func (UnimplementedAccountServer) AuthorizationHalfScreenMiniProgram(context.Context, *AuthorizationHalfScreenMiniProgramRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizationHalfScreenMiniProgram not implemented") } func (UnimplementedAccountServer) GetUserLoginConfig(context.Context, *emptypb.Empty) (*common.GetLoginConfigReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserLoginConfig not implemented") } func (UnimplementedAccountServer) GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetGetGzhConfig not implemented") } func (UnimplementedAccountServer) GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppID not implemented") } func (UnimplementedAccountServer) GetIdentityByOpenIDAndAppIDAndCreate(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppIDAndCreate not implemented") } func (UnimplementedAccountServer) GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountID not implemented") } func (UnimplementedAccountServer) GetIdentifyByAccountIDAndIsSubscribe(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountIDAndIsSubscribe not implemented") } func (UnimplementedAccountServer) GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountIDAndIsSubscribeByMiniProgram not implemented") } func (UnimplementedAccountServer) FindIdentifyByAccountIDAndIsSubscribe(context.Context, *FindIdentifyByAccountIDAndIsSubscribeRequest) (*FindIdentifyByAccountIDAndIsSubscribeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FindIdentifyByAccountIDAndIsSubscribe not implemented") } func (UnimplementedAccountServer) UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UserSubscribe not implemented") } func (UnimplementedAccountServer) UserUnsubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UserUnsubscribe not implemented") } func (UnimplementedAccountServer) GetUserPhoneByCode(context.Context, *GetUserPhoneByCodeRequest) (*GetUserPhoneByCodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserPhoneByCode not implemented") } func (UnimplementedAccountServer) GetHalfScreenMiniProgramMessage(context.Context, *GetHalfScreenMiniProgramMessageRequest) (*GetHalfScreenMiniProgramMessageReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetHalfScreenMiniProgramMessage 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: Account_DebugLogin_FullMethodName, } 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: Account_Authorization_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).Authorization(ctx, req.(*AuthorizationRequest)) } return interceptor(ctx, in, info, handler) } func _Account_AuthorizationMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AuthorizationMiniProgramRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).AuthorizationMiniProgram(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_AuthorizationMiniProgram_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).AuthorizationMiniProgram(ctx, req.(*AuthorizationMiniProgramRequest)) } return interceptor(ctx, in, info, handler) } func _Account_AuthorizationHalfScreenMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AuthorizationHalfScreenMiniProgramRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).AuthorizationHalfScreenMiniProgram(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_AuthorizationHalfScreenMiniProgram_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).AuthorizationHalfScreenMiniProgram(ctx, req.(*AuthorizationHalfScreenMiniProgramRequest)) } return interceptor(ctx, in, info, handler) } func _Account_GetUserLoginConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(emptypb.Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetUserLoginConfig(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetUserLoginConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetUserLoginConfig(ctx, req.(*emptypb.Empty)) } return interceptor(ctx, in, info, handler) } func _Account_GetGetGzhConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(emptypb.Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetGetGzhConfig(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetGetGzhConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetGetGzhConfig(ctx, req.(*emptypb.Empty)) } return interceptor(ctx, in, info, handler) } func _Account_GetIdentityByOpenIDAndAppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(OpenIDAndAppIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetIdentityByOpenIDAndAppID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, req.(*OpenIDAndAppIDRequest)) } return interceptor(ctx, in, info, handler) } func _Account_GetIdentityByOpenIDAndAppIDAndCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(OpenIDAndAppIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetIdentityByOpenIDAndAppIDAndCreate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetIdentityByOpenIDAndAppIDAndCreate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetIdentityByOpenIDAndAppIDAndCreate(ctx, req.(*OpenIDAndAppIDRequest)) } return interceptor(ctx, in, info, handler) } func _Account_GetIdentifyByAccountID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetIdentifyByAccountIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetIdentifyByAccountID(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetIdentifyByAccountID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetIdentifyByAccountID(ctx, req.(*GetIdentifyByAccountIDRequest)) } return interceptor(ctx, in, info, handler) } func _Account_GetIdentifyByAccountIDAndIsSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetIdentifyByAccountIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribe(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetIdentifyByAccountIDAndIsSubscribe_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribe(ctx, req.(*GetIdentifyByAccountIDRequest)) } return interceptor(ctx, in, info, handler) } func _Account_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetIdentifyByAccountIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx, req.(*GetIdentifyByAccountIDRequest)) } return interceptor(ctx, in, info, handler) } func _Account_FindIdentifyByAccountIDAndIsSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindIdentifyByAccountIDAndIsSubscribeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).FindIdentifyByAccountIDAndIsSubscribe(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_FindIdentifyByAccountIDAndIsSubscribe_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).FindIdentifyByAccountIDAndIsSubscribe(ctx, req.(*FindIdentifyByAccountIDAndIsSubscribeRequest)) } return interceptor(ctx, in, info, handler) } func _Account_UserSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(OpenIDAndAppIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).UserSubscribe(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_UserSubscribe_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).UserSubscribe(ctx, req.(*OpenIDAndAppIDRequest)) } return interceptor(ctx, in, info, handler) } func _Account_UserUnsubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(OpenIDAndAppIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).UserUnsubscribe(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_UserUnsubscribe_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).UserUnsubscribe(ctx, req.(*OpenIDAndAppIDRequest)) } return interceptor(ctx, in, info, handler) } func _Account_GetUserPhoneByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUserPhoneByCodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetUserPhoneByCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetUserPhoneByCode_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetUserPhoneByCode(ctx, req.(*GetUserPhoneByCodeRequest)) } return interceptor(ctx, in, info, handler) } func _Account_GetHalfScreenMiniProgramMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetHalfScreenMiniProgramMessageRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServer).GetHalfScreenMiniProgramMessage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Account_GetHalfScreenMiniProgramMessage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServer).GetHalfScreenMiniProgramMessage(ctx, req.(*GetHalfScreenMiniProgramMessageRequest)) } 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: "AuthorizationMiniProgram", Handler: _Account_AuthorizationMiniProgram_Handler, }, { MethodName: "AuthorizationHalfScreenMiniProgram", Handler: _Account_AuthorizationHalfScreenMiniProgram_Handler, }, { MethodName: "GetUserLoginConfig", Handler: _Account_GetUserLoginConfig_Handler, }, { MethodName: "GetGetGzhConfig", Handler: _Account_GetGetGzhConfig_Handler, }, { MethodName: "GetIdentityByOpenIDAndAppID", Handler: _Account_GetIdentityByOpenIDAndAppID_Handler, }, { MethodName: "GetIdentityByOpenIDAndAppIDAndCreate", Handler: _Account_GetIdentityByOpenIDAndAppIDAndCreate_Handler, }, { MethodName: "GetIdentifyByAccountID", Handler: _Account_GetIdentifyByAccountID_Handler, }, { MethodName: "GetIdentifyByAccountIDAndIsSubscribe", Handler: _Account_GetIdentifyByAccountIDAndIsSubscribe_Handler, }, { MethodName: "GetIdentifyByAccountIDAndIsSubscribeByMiniProgram", Handler: _Account_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_Handler, }, { MethodName: "FindIdentifyByAccountIDAndIsSubscribe", Handler: _Account_FindIdentifyByAccountIDAndIsSubscribe_Handler, }, { MethodName: "UserSubscribe", Handler: _Account_UserSubscribe_Handler, }, { MethodName: "UserUnsubscribe", Handler: _Account_UserUnsubscribe_Handler, }, { MethodName: "GetUserPhoneByCode", Handler: _Account_GetUserPhoneByCode_Handler, }, { MethodName: "GetHalfScreenMiniProgramMessage", Handler: _Account_GetHalfScreenMiniProgramMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account.proto", }