// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.2 // - protoc v7.35.0 // source: proto/user/v1/user.proto package userv1 import ( 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.64.0 or later. const _ = grpc.SupportPackageIsVersion9 const ( UserService_GetUser_FullMethodName = "/hyapp.user.v1.UserService/GetUser" UserService_BusinessUserLookup_FullMethodName = "/hyapp.user.v1.UserService/BusinessUserLookup" UserService_GetMyProfileStats_FullMethodName = "/hyapp.user.v1.UserService/GetMyProfileStats" UserService_BatchGetUsers_FullMethodName = "/hyapp.user.v1.UserService/BatchGetUsers" UserService_ListUserIDs_FullMethodName = "/hyapp.user.v1.UserService/ListUserIDs" UserService_GetUserMicLifetimeStats_FullMethodName = "/hyapp.user.v1.UserService/GetUserMicLifetimeStats" UserService_UpdateUserProfile_FullMethodName = "/hyapp.user.v1.UserService/UpdateUserProfile" UserService_ChangeUserCountry_FullMethodName = "/hyapp.user.v1.UserService/ChangeUserCountry" UserService_AdminChangeUserCountry_FullMethodName = "/hyapp.user.v1.UserService/AdminChangeUserCountry" UserService_SetUserStatus_FullMethodName = "/hyapp.user.v1.UserService/SetUserStatus" UserService_CompleteOnboarding_FullMethodName = "/hyapp.user.v1.UserService/CompleteOnboarding" ) // UserServiceClient is the client API for UserService 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. // // UserService 提供用户主状态、基础资料和注册资料读写接口。 type UserServiceClient interface { GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) BusinessUserLookup(ctx context.Context, in *BusinessUserLookupRequest, opts ...grpc.CallOption) (*BusinessUserLookupResponse, error) GetMyProfileStats(ctx context.Context, in *GetMyProfileStatsRequest, opts ...grpc.CallOption) (*GetMyProfileStatsResponse, error) BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersResponse, error) ListUserIDs(ctx context.Context, in *ListUserIDsRequest, opts ...grpc.CallOption) (*ListUserIDsResponse, error) GetUserMicLifetimeStats(ctx context.Context, in *GetUserMicLifetimeStatsRequest, opts ...grpc.CallOption) (*GetUserMicLifetimeStatsResponse, error) UpdateUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UpdateUserProfileResponse, error) ChangeUserCountry(ctx context.Context, in *ChangeUserCountryRequest, opts ...grpc.CallOption) (*ChangeUserCountryResponse, error) AdminChangeUserCountry(ctx context.Context, in *AdminChangeUserCountryRequest, opts ...grpc.CallOption) (*ChangeUserCountryResponse, error) SetUserStatus(ctx context.Context, in *SetUserStatusRequest, opts ...grpc.CallOption) (*SetUserStatusResponse, error) CompleteOnboarding(ctx context.Context, in *CompleteOnboardingRequest, opts ...grpc.CallOption) (*CompleteOnboardingResponse, error) } type userServiceClient struct { cc grpc.ClientConnInterface } func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { return &userServiceClient{cc} } func (c *userServiceClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserResponse) err := c.cc.Invoke(ctx, UserService_GetUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) BusinessUserLookup(ctx context.Context, in *BusinessUserLookupRequest, opts ...grpc.CallOption) (*BusinessUserLookupResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BusinessUserLookupResponse) err := c.cc.Invoke(ctx, UserService_BusinessUserLookup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) GetMyProfileStats(ctx context.Context, in *GetMyProfileStatsRequest, opts ...grpc.CallOption) (*GetMyProfileStatsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMyProfileStatsResponse) err := c.cc.Invoke(ctx, UserService_GetMyProfileStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchGetUsersResponse) err := c.cc.Invoke(ctx, UserService_BatchGetUsers_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) ListUserIDs(ctx context.Context, in *ListUserIDsRequest, opts ...grpc.CallOption) (*ListUserIDsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListUserIDsResponse) err := c.cc.Invoke(ctx, UserService_ListUserIDs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) GetUserMicLifetimeStats(ctx context.Context, in *GetUserMicLifetimeStatsRequest, opts ...grpc.CallOption) (*GetUserMicLifetimeStatsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserMicLifetimeStatsResponse) err := c.cc.Invoke(ctx, UserService_GetUserMicLifetimeStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) UpdateUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UpdateUserProfileResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateUserProfileResponse) err := c.cc.Invoke(ctx, UserService_UpdateUserProfile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) ChangeUserCountry(ctx context.Context, in *ChangeUserCountryRequest, opts ...grpc.CallOption) (*ChangeUserCountryResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangeUserCountryResponse) err := c.cc.Invoke(ctx, UserService_ChangeUserCountry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) AdminChangeUserCountry(ctx context.Context, in *AdminChangeUserCountryRequest, opts ...grpc.CallOption) (*ChangeUserCountryResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangeUserCountryResponse) err := c.cc.Invoke(ctx, UserService_AdminChangeUserCountry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) SetUserStatus(ctx context.Context, in *SetUserStatusRequest, opts ...grpc.CallOption) (*SetUserStatusResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetUserStatusResponse) err := c.cc.Invoke(ctx, UserService_SetUserStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userServiceClient) CompleteOnboarding(ctx context.Context, in *CompleteOnboardingRequest, opts ...grpc.CallOption) (*CompleteOnboardingResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CompleteOnboardingResponse) err := c.cc.Invoke(ctx, UserService_CompleteOnboarding_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // UserServiceServer is the server API for UserService service. // All implementations must embed UnimplementedUserServiceServer // for forward compatibility. // // UserService 提供用户主状态、基础资料和注册资料读写接口。 type UserServiceServer interface { GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) BusinessUserLookup(context.Context, *BusinessUserLookupRequest) (*BusinessUserLookupResponse, error) GetMyProfileStats(context.Context, *GetMyProfileStatsRequest) (*GetMyProfileStatsResponse, error) BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersResponse, error) ListUserIDs(context.Context, *ListUserIDsRequest) (*ListUserIDsResponse, error) GetUserMicLifetimeStats(context.Context, *GetUserMicLifetimeStatsRequest) (*GetUserMicLifetimeStatsResponse, error) UpdateUserProfile(context.Context, *UpdateUserProfileRequest) (*UpdateUserProfileResponse, error) ChangeUserCountry(context.Context, *ChangeUserCountryRequest) (*ChangeUserCountryResponse, error) AdminChangeUserCountry(context.Context, *AdminChangeUserCountryRequest) (*ChangeUserCountryResponse, error) SetUserStatus(context.Context, *SetUserStatusRequest) (*SetUserStatusResponse, error) CompleteOnboarding(context.Context, *CompleteOnboardingRequest) (*CompleteOnboardingResponse, error) mustEmbedUnimplementedUserServiceServer() } // UnimplementedUserServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedUserServiceServer struct{} func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetUser not implemented") } func (UnimplementedUserServiceServer) BusinessUserLookup(context.Context, *BusinessUserLookupRequest) (*BusinessUserLookupResponse, error) { return nil, status.Error(codes.Unimplemented, "method BusinessUserLookup not implemented") } func (UnimplementedUserServiceServer) GetMyProfileStats(context.Context, *GetMyProfileStatsRequest) (*GetMyProfileStatsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetMyProfileStats not implemented") } func (UnimplementedUserServiceServer) BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersResponse, error) { return nil, status.Error(codes.Unimplemented, "method BatchGetUsers not implemented") } func (UnimplementedUserServiceServer) ListUserIDs(context.Context, *ListUserIDsRequest) (*ListUserIDsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListUserIDs not implemented") } func (UnimplementedUserServiceServer) GetUserMicLifetimeStats(context.Context, *GetUserMicLifetimeStatsRequest) (*GetUserMicLifetimeStatsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetUserMicLifetimeStats not implemented") } func (UnimplementedUserServiceServer) UpdateUserProfile(context.Context, *UpdateUserProfileRequest) (*UpdateUserProfileResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateUserProfile not implemented") } func (UnimplementedUserServiceServer) ChangeUserCountry(context.Context, *ChangeUserCountryRequest) (*ChangeUserCountryResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeUserCountry not implemented") } func (UnimplementedUserServiceServer) AdminChangeUserCountry(context.Context, *AdminChangeUserCountryRequest) (*ChangeUserCountryResponse, error) { return nil, status.Error(codes.Unimplemented, "method AdminChangeUserCountry not implemented") } func (UnimplementedUserServiceServer) SetUserStatus(context.Context, *SetUserStatusRequest) (*SetUserStatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method SetUserStatus not implemented") } func (UnimplementedUserServiceServer) CompleteOnboarding(context.Context, *CompleteOnboardingRequest) (*CompleteOnboardingResponse, error) { return nil, status.Error(codes.Unimplemented, "method CompleteOnboarding not implemented") } func (UnimplementedUserServiceServer) mustEmbedUnimplementedUserServiceServer() {} func (UnimplementedUserServiceServer) testEmbeddedByValue() {} // UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserServiceServer will // result in compilation errors. type UnsafeUserServiceServer interface { mustEmbedUnimplementedUserServiceServer() } func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) { // If the following call panics, it indicates UnimplementedUserServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&UserService_ServiceDesc, srv) } func _UserService_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).GetUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_GetUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).GetUser(ctx, req.(*GetUserRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_BusinessUserLookup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(BusinessUserLookupRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).BusinessUserLookup(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_BusinessUserLookup_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).BusinessUserLookup(ctx, req.(*BusinessUserLookupRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_GetMyProfileStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetMyProfileStatsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).GetMyProfileStats(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_GetMyProfileStats_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).GetMyProfileStats(ctx, req.(*GetMyProfileStatsRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_BatchGetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(BatchGetUsersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).BatchGetUsers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_BatchGetUsers_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).BatchGetUsers(ctx, req.(*BatchGetUsersRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_ListUserIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListUserIDsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).ListUserIDs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_ListUserIDs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).ListUserIDs(ctx, req.(*ListUserIDsRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_GetUserMicLifetimeStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUserMicLifetimeStatsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).GetUserMicLifetimeStats(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_GetUserMicLifetimeStats_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).GetUserMicLifetimeStats(ctx, req.(*GetUserMicLifetimeStatsRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_UpdateUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateUserProfileRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).UpdateUserProfile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_UpdateUserProfile_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).UpdateUserProfile(ctx, req.(*UpdateUserProfileRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_ChangeUserCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeUserCountryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).ChangeUserCountry(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_ChangeUserCountry_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).ChangeUserCountry(ctx, req.(*ChangeUserCountryRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_AdminChangeUserCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AdminChangeUserCountryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).AdminChangeUserCountry(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_AdminChangeUserCountry_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).AdminChangeUserCountry(ctx, req.(*AdminChangeUserCountryRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_SetUserStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetUserStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).SetUserStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_SetUserStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).SetUserStatus(ctx, req.(*SetUserStatusRequest)) } return interceptor(ctx, in, info, handler) } func _UserService_CompleteOnboarding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CompleteOnboardingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServiceServer).CompleteOnboarding(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserService_CompleteOnboarding_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).CompleteOnboarding(ctx, req.(*CompleteOnboardingRequest)) } return interceptor(ctx, in, info, handler) } // UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "BusinessUserLookup", Handler: _UserService_BusinessUserLookup_Handler, }, { MethodName: "GetMyProfileStats", Handler: _UserService_GetMyProfileStats_Handler, }, { MethodName: "BatchGetUsers", Handler: _UserService_BatchGetUsers_Handler, }, { MethodName: "ListUserIDs", Handler: _UserService_ListUserIDs_Handler, }, { MethodName: "GetUserMicLifetimeStats", Handler: _UserService_GetUserMicLifetimeStats_Handler, }, { MethodName: "UpdateUserProfile", Handler: _UserService_UpdateUserProfile_Handler, }, { MethodName: "ChangeUserCountry", Handler: _UserService_ChangeUserCountry_Handler, }, { MethodName: "AdminChangeUserCountry", Handler: _UserService_AdminChangeUserCountry_Handler, }, { MethodName: "SetUserStatus", Handler: _UserService_SetUserStatus_Handler, }, { MethodName: "CompleteOnboarding", Handler: _UserService_CompleteOnboarding_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", } const ( UserSocialService_RecordProfileVisit_FullMethodName = "/hyapp.user.v1.UserSocialService/RecordProfileVisit" UserSocialService_ListProfileVisitors_FullMethodName = "/hyapp.user.v1.UserSocialService/ListProfileVisitors" UserSocialService_FollowUser_FullMethodName = "/hyapp.user.v1.UserSocialService/FollowUser" UserSocialService_UnfollowUser_FullMethodName = "/hyapp.user.v1.UserSocialService/UnfollowUser" UserSocialService_ListFollowing_FullMethodName = "/hyapp.user.v1.UserSocialService/ListFollowing" UserSocialService_ApplyFriend_FullMethodName = "/hyapp.user.v1.UserSocialService/ApplyFriend" UserSocialService_AcceptFriendApplication_FullMethodName = "/hyapp.user.v1.UserSocialService/AcceptFriendApplication" UserSocialService_DeleteFriend_FullMethodName = "/hyapp.user.v1.UserSocialService/DeleteFriend" UserSocialService_ListFriends_FullMethodName = "/hyapp.user.v1.UserSocialService/ListFriends" UserSocialService_ListFriendApplications_FullMethodName = "/hyapp.user.v1.UserSocialService/ListFriendApplications" UserSocialService_SubmitReport_FullMethodName = "/hyapp.user.v1.UserSocialService/SubmitReport" ) // UserSocialServiceClient is the client API for UserSocialService 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. // // UserSocialService 承载用户访问、关注和好友关系。 type UserSocialServiceClient interface { RecordProfileVisit(ctx context.Context, in *RecordProfileVisitRequest, opts ...grpc.CallOption) (*RecordProfileVisitResponse, error) ListProfileVisitors(ctx context.Context, in *ListProfileVisitorsRequest, opts ...grpc.CallOption) (*ListProfileVisitorsResponse, error) FollowUser(ctx context.Context, in *FollowUserRequest, opts ...grpc.CallOption) (*FollowUserResponse, error) UnfollowUser(ctx context.Context, in *UnfollowUserRequest, opts ...grpc.CallOption) (*UnfollowUserResponse, error) ListFollowing(ctx context.Context, in *ListFollowingRequest, opts ...grpc.CallOption) (*ListFollowingResponse, error) ApplyFriend(ctx context.Context, in *ApplyFriendRequest, opts ...grpc.CallOption) (*ApplyFriendResponse, error) AcceptFriendApplication(ctx context.Context, in *AcceptFriendApplicationRequest, opts ...grpc.CallOption) (*AcceptFriendApplicationResponse, error) DeleteFriend(ctx context.Context, in *DeleteFriendRequest, opts ...grpc.CallOption) (*DeleteFriendResponse, error) ListFriends(ctx context.Context, in *ListFriendsRequest, opts ...grpc.CallOption) (*ListFriendsResponse, error) ListFriendApplications(ctx context.Context, in *ListFriendApplicationsRequest, opts ...grpc.CallOption) (*ListFriendApplicationsResponse, error) SubmitReport(ctx context.Context, in *SubmitReportRequest, opts ...grpc.CallOption) (*SubmitReportResponse, error) } type userSocialServiceClient struct { cc grpc.ClientConnInterface } func NewUserSocialServiceClient(cc grpc.ClientConnInterface) UserSocialServiceClient { return &userSocialServiceClient{cc} } func (c *userSocialServiceClient) RecordProfileVisit(ctx context.Context, in *RecordProfileVisitRequest, opts ...grpc.CallOption) (*RecordProfileVisitResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RecordProfileVisitResponse) err := c.cc.Invoke(ctx, UserSocialService_RecordProfileVisit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) ListProfileVisitors(ctx context.Context, in *ListProfileVisitorsRequest, opts ...grpc.CallOption) (*ListProfileVisitorsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListProfileVisitorsResponse) err := c.cc.Invoke(ctx, UserSocialService_ListProfileVisitors_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) FollowUser(ctx context.Context, in *FollowUserRequest, opts ...grpc.CallOption) (*FollowUserResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FollowUserResponse) err := c.cc.Invoke(ctx, UserSocialService_FollowUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) UnfollowUser(ctx context.Context, in *UnfollowUserRequest, opts ...grpc.CallOption) (*UnfollowUserResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UnfollowUserResponse) err := c.cc.Invoke(ctx, UserSocialService_UnfollowUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) ListFollowing(ctx context.Context, in *ListFollowingRequest, opts ...grpc.CallOption) (*ListFollowingResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListFollowingResponse) err := c.cc.Invoke(ctx, UserSocialService_ListFollowing_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) ApplyFriend(ctx context.Context, in *ApplyFriendRequest, opts ...grpc.CallOption) (*ApplyFriendResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ApplyFriendResponse) err := c.cc.Invoke(ctx, UserSocialService_ApplyFriend_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) AcceptFriendApplication(ctx context.Context, in *AcceptFriendApplicationRequest, opts ...grpc.CallOption) (*AcceptFriendApplicationResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AcceptFriendApplicationResponse) err := c.cc.Invoke(ctx, UserSocialService_AcceptFriendApplication_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) DeleteFriend(ctx context.Context, in *DeleteFriendRequest, opts ...grpc.CallOption) (*DeleteFriendResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteFriendResponse) err := c.cc.Invoke(ctx, UserSocialService_DeleteFriend_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) ListFriends(ctx context.Context, in *ListFriendsRequest, opts ...grpc.CallOption) (*ListFriendsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListFriendsResponse) err := c.cc.Invoke(ctx, UserSocialService_ListFriends_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) ListFriendApplications(ctx context.Context, in *ListFriendApplicationsRequest, opts ...grpc.CallOption) (*ListFriendApplicationsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListFriendApplicationsResponse) err := c.cc.Invoke(ctx, UserSocialService_ListFriendApplications_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userSocialServiceClient) SubmitReport(ctx context.Context, in *SubmitReportRequest, opts ...grpc.CallOption) (*SubmitReportResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SubmitReportResponse) err := c.cc.Invoke(ctx, UserSocialService_SubmitReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // UserSocialServiceServer is the server API for UserSocialService service. // All implementations must embed UnimplementedUserSocialServiceServer // for forward compatibility. // // UserSocialService 承载用户访问、关注和好友关系。 type UserSocialServiceServer interface { RecordProfileVisit(context.Context, *RecordProfileVisitRequest) (*RecordProfileVisitResponse, error) ListProfileVisitors(context.Context, *ListProfileVisitorsRequest) (*ListProfileVisitorsResponse, error) FollowUser(context.Context, *FollowUserRequest) (*FollowUserResponse, error) UnfollowUser(context.Context, *UnfollowUserRequest) (*UnfollowUserResponse, error) ListFollowing(context.Context, *ListFollowingRequest) (*ListFollowingResponse, error) ApplyFriend(context.Context, *ApplyFriendRequest) (*ApplyFriendResponse, error) AcceptFriendApplication(context.Context, *AcceptFriendApplicationRequest) (*AcceptFriendApplicationResponse, error) DeleteFriend(context.Context, *DeleteFriendRequest) (*DeleteFriendResponse, error) ListFriends(context.Context, *ListFriendsRequest) (*ListFriendsResponse, error) ListFriendApplications(context.Context, *ListFriendApplicationsRequest) (*ListFriendApplicationsResponse, error) SubmitReport(context.Context, *SubmitReportRequest) (*SubmitReportResponse, error) mustEmbedUnimplementedUserSocialServiceServer() } // UnimplementedUserSocialServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedUserSocialServiceServer struct{} func (UnimplementedUserSocialServiceServer) RecordProfileVisit(context.Context, *RecordProfileVisitRequest) (*RecordProfileVisitResponse, error) { return nil, status.Error(codes.Unimplemented, "method RecordProfileVisit not implemented") } func (UnimplementedUserSocialServiceServer) ListProfileVisitors(context.Context, *ListProfileVisitorsRequest) (*ListProfileVisitorsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListProfileVisitors not implemented") } func (UnimplementedUserSocialServiceServer) FollowUser(context.Context, *FollowUserRequest) (*FollowUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method FollowUser not implemented") } func (UnimplementedUserSocialServiceServer) UnfollowUser(context.Context, *UnfollowUserRequest) (*UnfollowUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method UnfollowUser not implemented") } func (UnimplementedUserSocialServiceServer) ListFollowing(context.Context, *ListFollowingRequest) (*ListFollowingResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListFollowing not implemented") } func (UnimplementedUserSocialServiceServer) ApplyFriend(context.Context, *ApplyFriendRequest) (*ApplyFriendResponse, error) { return nil, status.Error(codes.Unimplemented, "method ApplyFriend not implemented") } func (UnimplementedUserSocialServiceServer) AcceptFriendApplication(context.Context, *AcceptFriendApplicationRequest) (*AcceptFriendApplicationResponse, error) { return nil, status.Error(codes.Unimplemented, "method AcceptFriendApplication not implemented") } func (UnimplementedUserSocialServiceServer) DeleteFriend(context.Context, *DeleteFriendRequest) (*DeleteFriendResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteFriend not implemented") } func (UnimplementedUserSocialServiceServer) ListFriends(context.Context, *ListFriendsRequest) (*ListFriendsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListFriends not implemented") } func (UnimplementedUserSocialServiceServer) ListFriendApplications(context.Context, *ListFriendApplicationsRequest) (*ListFriendApplicationsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListFriendApplications not implemented") } func (UnimplementedUserSocialServiceServer) SubmitReport(context.Context, *SubmitReportRequest) (*SubmitReportResponse, error) { return nil, status.Error(codes.Unimplemented, "method SubmitReport not implemented") } func (UnimplementedUserSocialServiceServer) mustEmbedUnimplementedUserSocialServiceServer() {} func (UnimplementedUserSocialServiceServer) testEmbeddedByValue() {} // UnsafeUserSocialServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserSocialServiceServer will // result in compilation errors. type UnsafeUserSocialServiceServer interface { mustEmbedUnimplementedUserSocialServiceServer() } func RegisterUserSocialServiceServer(s grpc.ServiceRegistrar, srv UserSocialServiceServer) { // If the following call panics, it indicates UnimplementedUserSocialServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&UserSocialService_ServiceDesc, srv) } func _UserSocialService_RecordProfileVisit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RecordProfileVisitRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).RecordProfileVisit(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_RecordProfileVisit_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).RecordProfileVisit(ctx, req.(*RecordProfileVisitRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_ListProfileVisitors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListProfileVisitorsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).ListProfileVisitors(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_ListProfileVisitors_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).ListProfileVisitors(ctx, req.(*ListProfileVisitorsRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_FollowUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FollowUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).FollowUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_FollowUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).FollowUser(ctx, req.(*FollowUserRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_UnfollowUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnfollowUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).UnfollowUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_UnfollowUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).UnfollowUser(ctx, req.(*UnfollowUserRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_ListFollowing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListFollowingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).ListFollowing(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_ListFollowing_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).ListFollowing(ctx, req.(*ListFollowingRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_ApplyFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ApplyFriendRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).ApplyFriend(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_ApplyFriend_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).ApplyFriend(ctx, req.(*ApplyFriendRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_AcceptFriendApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AcceptFriendApplicationRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).AcceptFriendApplication(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_AcceptFriendApplication_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).AcceptFriendApplication(ctx, req.(*AcceptFriendApplicationRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_DeleteFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteFriendRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).DeleteFriend(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_DeleteFriend_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).DeleteFriend(ctx, req.(*DeleteFriendRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_ListFriends_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListFriendsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).ListFriends(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_ListFriends_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).ListFriends(ctx, req.(*ListFriendsRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_ListFriendApplications_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListFriendApplicationsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).ListFriendApplications(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_ListFriendApplications_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).ListFriendApplications(ctx, req.(*ListFriendApplicationsRequest)) } return interceptor(ctx, in, info, handler) } func _UserSocialService_SubmitReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SubmitReportRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserSocialServiceServer).SubmitReport(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserSocialService_SubmitReport_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserSocialServiceServer).SubmitReport(ctx, req.(*SubmitReportRequest)) } return interceptor(ctx, in, info, handler) } // UserSocialService_ServiceDesc is the grpc.ServiceDesc for UserSocialService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var UserSocialService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.UserSocialService", HandlerType: (*UserSocialServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RecordProfileVisit", Handler: _UserSocialService_RecordProfileVisit_Handler, }, { MethodName: "ListProfileVisitors", Handler: _UserSocialService_ListProfileVisitors_Handler, }, { MethodName: "FollowUser", Handler: _UserSocialService_FollowUser_Handler, }, { MethodName: "UnfollowUser", Handler: _UserSocialService_UnfollowUser_Handler, }, { MethodName: "ListFollowing", Handler: _UserSocialService_ListFollowing_Handler, }, { MethodName: "ApplyFriend", Handler: _UserSocialService_ApplyFriend_Handler, }, { MethodName: "AcceptFriendApplication", Handler: _UserSocialService_AcceptFriendApplication_Handler, }, { MethodName: "DeleteFriend", Handler: _UserSocialService_DeleteFriend_Handler, }, { MethodName: "ListFriends", Handler: _UserSocialService_ListFriends_Handler, }, { MethodName: "ListFriendApplications", Handler: _UserSocialService_ListFriendApplications_Handler, }, { MethodName: "SubmitReport", Handler: _UserSocialService_SubmitReport_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", } const ( UserCronService_ProcessLoginIPRiskBatch_FullMethodName = "/hyapp.user.v1.UserCronService/ProcessLoginIPRiskBatch" UserCronService_ProcessRegionRebuildBatch_FullMethodName = "/hyapp.user.v1.UserCronService/ProcessRegionRebuildBatch" UserCronService_CompensateMicOpenSessions_FullMethodName = "/hyapp.user.v1.UserCronService/CompensateMicOpenSessions" ) // UserCronServiceClient is the client API for UserCronService 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. // // UserCronService 只给 cron-service 调用,业务状态仍由 user-service owner 修改。 type UserCronServiceClient interface { ProcessLoginIPRiskBatch(ctx context.Context, in *CronBatchRequest, opts ...grpc.CallOption) (*CronBatchResponse, error) ProcessRegionRebuildBatch(ctx context.Context, in *CronBatchRequest, opts ...grpc.CallOption) (*CronBatchResponse, error) CompensateMicOpenSessions(ctx context.Context, in *CronBatchRequest, opts ...grpc.CallOption) (*CronBatchResponse, error) } type userCronServiceClient struct { cc grpc.ClientConnInterface } func NewUserCronServiceClient(cc grpc.ClientConnInterface) UserCronServiceClient { return &userCronServiceClient{cc} } func (c *userCronServiceClient) ProcessLoginIPRiskBatch(ctx context.Context, in *CronBatchRequest, opts ...grpc.CallOption) (*CronBatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CronBatchResponse) err := c.cc.Invoke(ctx, UserCronService_ProcessLoginIPRiskBatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userCronServiceClient) ProcessRegionRebuildBatch(ctx context.Context, in *CronBatchRequest, opts ...grpc.CallOption) (*CronBatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CronBatchResponse) err := c.cc.Invoke(ctx, UserCronService_ProcessRegionRebuildBatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userCronServiceClient) CompensateMicOpenSessions(ctx context.Context, in *CronBatchRequest, opts ...grpc.CallOption) (*CronBatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CronBatchResponse) err := c.cc.Invoke(ctx, UserCronService_CompensateMicOpenSessions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // UserCronServiceServer is the server API for UserCronService service. // All implementations must embed UnimplementedUserCronServiceServer // for forward compatibility. // // UserCronService 只给 cron-service 调用,业务状态仍由 user-service owner 修改。 type UserCronServiceServer interface { ProcessLoginIPRiskBatch(context.Context, *CronBatchRequest) (*CronBatchResponse, error) ProcessRegionRebuildBatch(context.Context, *CronBatchRequest) (*CronBatchResponse, error) CompensateMicOpenSessions(context.Context, *CronBatchRequest) (*CronBatchResponse, error) mustEmbedUnimplementedUserCronServiceServer() } // UnimplementedUserCronServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedUserCronServiceServer struct{} func (UnimplementedUserCronServiceServer) ProcessLoginIPRiskBatch(context.Context, *CronBatchRequest) (*CronBatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method ProcessLoginIPRiskBatch not implemented") } func (UnimplementedUserCronServiceServer) ProcessRegionRebuildBatch(context.Context, *CronBatchRequest) (*CronBatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method ProcessRegionRebuildBatch not implemented") } func (UnimplementedUserCronServiceServer) CompensateMicOpenSessions(context.Context, *CronBatchRequest) (*CronBatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method CompensateMicOpenSessions not implemented") } func (UnimplementedUserCronServiceServer) mustEmbedUnimplementedUserCronServiceServer() {} func (UnimplementedUserCronServiceServer) testEmbeddedByValue() {} // UnsafeUserCronServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserCronServiceServer will // result in compilation errors. type UnsafeUserCronServiceServer interface { mustEmbedUnimplementedUserCronServiceServer() } func RegisterUserCronServiceServer(s grpc.ServiceRegistrar, srv UserCronServiceServer) { // If the following call panics, it indicates UnimplementedUserCronServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&UserCronService_ServiceDesc, srv) } func _UserCronService_ProcessLoginIPRiskBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CronBatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCronServiceServer).ProcessLoginIPRiskBatch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserCronService_ProcessLoginIPRiskBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCronServiceServer).ProcessLoginIPRiskBatch(ctx, req.(*CronBatchRequest)) } return interceptor(ctx, in, info, handler) } func _UserCronService_ProcessRegionRebuildBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CronBatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCronServiceServer).ProcessRegionRebuildBatch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserCronService_ProcessRegionRebuildBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCronServiceServer).ProcessRegionRebuildBatch(ctx, req.(*CronBatchRequest)) } return interceptor(ctx, in, info, handler) } func _UserCronService_CompensateMicOpenSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CronBatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCronServiceServer).CompensateMicOpenSessions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserCronService_CompensateMicOpenSessions_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCronServiceServer).CompensateMicOpenSessions(ctx, req.(*CronBatchRequest)) } return interceptor(ctx, in, info, handler) } // UserCronService_ServiceDesc is the grpc.ServiceDesc for UserCronService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var UserCronService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.UserCronService", HandlerType: (*UserCronServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProcessLoginIPRiskBatch", Handler: _UserCronService_ProcessLoginIPRiskBatch_Handler, }, { MethodName: "ProcessRegionRebuildBatch", Handler: _UserCronService_ProcessRegionRebuildBatch_Handler, }, { MethodName: "CompensateMicOpenSessions", Handler: _UserCronService_CompensateMicOpenSessions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", } const ( UserDeviceService_BindPushToken_FullMethodName = "/hyapp.user.v1.UserDeviceService/BindPushToken" UserDeviceService_DeletePushToken_FullMethodName = "/hyapp.user.v1.UserDeviceService/DeletePushToken" ) // UserDeviceServiceClient is the client API for UserDeviceService 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. // // UserDeviceService 承载 App 设备推送 token 的绑定和失效。 type UserDeviceServiceClient interface { BindPushToken(ctx context.Context, in *BindPushTokenRequest, opts ...grpc.CallOption) (*BindPushTokenResponse, error) DeletePushToken(ctx context.Context, in *DeletePushTokenRequest, opts ...grpc.CallOption) (*DeletePushTokenResponse, error) } type userDeviceServiceClient struct { cc grpc.ClientConnInterface } func NewUserDeviceServiceClient(cc grpc.ClientConnInterface) UserDeviceServiceClient { return &userDeviceServiceClient{cc} } func (c *userDeviceServiceClient) BindPushToken(ctx context.Context, in *BindPushTokenRequest, opts ...grpc.CallOption) (*BindPushTokenResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BindPushTokenResponse) err := c.cc.Invoke(ctx, UserDeviceService_BindPushToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userDeviceServiceClient) DeletePushToken(ctx context.Context, in *DeletePushTokenRequest, opts ...grpc.CallOption) (*DeletePushTokenResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeletePushTokenResponse) err := c.cc.Invoke(ctx, UserDeviceService_DeletePushToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // UserDeviceServiceServer is the server API for UserDeviceService service. // All implementations must embed UnimplementedUserDeviceServiceServer // for forward compatibility. // // UserDeviceService 承载 App 设备推送 token 的绑定和失效。 type UserDeviceServiceServer interface { BindPushToken(context.Context, *BindPushTokenRequest) (*BindPushTokenResponse, error) DeletePushToken(context.Context, *DeletePushTokenRequest) (*DeletePushTokenResponse, error) mustEmbedUnimplementedUserDeviceServiceServer() } // UnimplementedUserDeviceServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedUserDeviceServiceServer struct{} func (UnimplementedUserDeviceServiceServer) BindPushToken(context.Context, *BindPushTokenRequest) (*BindPushTokenResponse, error) { return nil, status.Error(codes.Unimplemented, "method BindPushToken not implemented") } func (UnimplementedUserDeviceServiceServer) DeletePushToken(context.Context, *DeletePushTokenRequest) (*DeletePushTokenResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeletePushToken not implemented") } func (UnimplementedUserDeviceServiceServer) mustEmbedUnimplementedUserDeviceServiceServer() {} func (UnimplementedUserDeviceServiceServer) testEmbeddedByValue() {} // UnsafeUserDeviceServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserDeviceServiceServer will // result in compilation errors. type UnsafeUserDeviceServiceServer interface { mustEmbedUnimplementedUserDeviceServiceServer() } func RegisterUserDeviceServiceServer(s grpc.ServiceRegistrar, srv UserDeviceServiceServer) { // If the following call panics, it indicates UnimplementedUserDeviceServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&UserDeviceService_ServiceDesc, srv) } func _UserDeviceService_BindPushToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(BindPushTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserDeviceServiceServer).BindPushToken(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserDeviceService_BindPushToken_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserDeviceServiceServer).BindPushToken(ctx, req.(*BindPushTokenRequest)) } return interceptor(ctx, in, info, handler) } func _UserDeviceService_DeletePushToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeletePushTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserDeviceServiceServer).DeletePushToken(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserDeviceService_DeletePushToken_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserDeviceServiceServer).DeletePushToken(ctx, req.(*DeletePushTokenRequest)) } return interceptor(ctx, in, info, handler) } // UserDeviceService_ServiceDesc is the grpc.ServiceDesc for UserDeviceService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var UserDeviceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.UserDeviceService", HandlerType: (*UserDeviceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "BindPushToken", Handler: _UserDeviceService_BindPushToken_Handler, }, { MethodName: "DeletePushToken", Handler: _UserDeviceService_DeletePushToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", } const ( AppRegistryService_ResolveApp_FullMethodName = "/hyapp.user.v1.AppRegistryService/ResolveApp" ) // AppRegistryServiceClient is the client API for AppRegistryService 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. // // AppRegistryService 是 gateway 解析 package_name -> app_code 的内部入口。 type AppRegistryServiceClient interface { ResolveApp(ctx context.Context, in *ResolveAppRequest, opts ...grpc.CallOption) (*ResolveAppResponse, error) } type appRegistryServiceClient struct { cc grpc.ClientConnInterface } func NewAppRegistryServiceClient(cc grpc.ClientConnInterface) AppRegistryServiceClient { return &appRegistryServiceClient{cc} } func (c *appRegistryServiceClient) ResolveApp(ctx context.Context, in *ResolveAppRequest, opts ...grpc.CallOption) (*ResolveAppResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ResolveAppResponse) err := c.cc.Invoke(ctx, AppRegistryService_ResolveApp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // AppRegistryServiceServer is the server API for AppRegistryService service. // All implementations must embed UnimplementedAppRegistryServiceServer // for forward compatibility. // // AppRegistryService 是 gateway 解析 package_name -> app_code 的内部入口。 type AppRegistryServiceServer interface { ResolveApp(context.Context, *ResolveAppRequest) (*ResolveAppResponse, error) mustEmbedUnimplementedAppRegistryServiceServer() } // UnimplementedAppRegistryServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedAppRegistryServiceServer struct{} func (UnimplementedAppRegistryServiceServer) ResolveApp(context.Context, *ResolveAppRequest) (*ResolveAppResponse, error) { return nil, status.Error(codes.Unimplemented, "method ResolveApp not implemented") } func (UnimplementedAppRegistryServiceServer) mustEmbedUnimplementedAppRegistryServiceServer() {} func (UnimplementedAppRegistryServiceServer) testEmbeddedByValue() {} // UnsafeAppRegistryServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AppRegistryServiceServer will // result in compilation errors. type UnsafeAppRegistryServiceServer interface { mustEmbedUnimplementedAppRegistryServiceServer() } func RegisterAppRegistryServiceServer(s grpc.ServiceRegistrar, srv AppRegistryServiceServer) { // If the following call panics, it indicates UnimplementedAppRegistryServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&AppRegistryService_ServiceDesc, srv) } func _AppRegistryService_ResolveApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ResolveAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AppRegistryServiceServer).ResolveApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AppRegistryService_ResolveApp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AppRegistryServiceServer).ResolveApp(ctx, req.(*ResolveAppRequest)) } return interceptor(ctx, in, info, handler) } // AppRegistryService_ServiceDesc is the grpc.ServiceDesc for AppRegistryService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var AppRegistryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.AppRegistryService", HandlerType: (*AppRegistryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ResolveApp", Handler: _AppRegistryService_ResolveApp_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", } const ( CountryAdminService_ListCountries_FullMethodName = "/hyapp.user.v1.CountryAdminService/ListCountries" CountryAdminService_UpdateCountry_FullMethodName = "/hyapp.user.v1.CountryAdminService/UpdateCountry" ) // CountryAdminServiceClient is the client API for CountryAdminService 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. // // CountryAdminService 只保留 App 后端需要承接的国家查询和展示字段更新 RPC。 // 创建国家、启用/禁用国家属于 hyapp-admin-server 后台能力,不在 user-service 暴露 RPC。 type CountryAdminServiceClient interface { ListCountries(ctx context.Context, in *ListCountriesRequest, opts ...grpc.CallOption) (*ListCountriesResponse, error) UpdateCountry(ctx context.Context, in *UpdateCountryRequest, opts ...grpc.CallOption) (*CountryResponse, error) } type countryAdminServiceClient struct { cc grpc.ClientConnInterface } func NewCountryAdminServiceClient(cc grpc.ClientConnInterface) CountryAdminServiceClient { return &countryAdminServiceClient{cc} } func (c *countryAdminServiceClient) ListCountries(ctx context.Context, in *ListCountriesRequest, opts ...grpc.CallOption) (*ListCountriesResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListCountriesResponse) err := c.cc.Invoke(ctx, CountryAdminService_ListCountries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *countryAdminServiceClient) UpdateCountry(ctx context.Context, in *UpdateCountryRequest, opts ...grpc.CallOption) (*CountryResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CountryResponse) err := c.cc.Invoke(ctx, CountryAdminService_UpdateCountry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // CountryAdminServiceServer is the server API for CountryAdminService service. // All implementations must embed UnimplementedCountryAdminServiceServer // for forward compatibility. // // CountryAdminService 只保留 App 后端需要承接的国家查询和展示字段更新 RPC。 // 创建国家、启用/禁用国家属于 hyapp-admin-server 后台能力,不在 user-service 暴露 RPC。 type CountryAdminServiceServer interface { ListCountries(context.Context, *ListCountriesRequest) (*ListCountriesResponse, error) UpdateCountry(context.Context, *UpdateCountryRequest) (*CountryResponse, error) mustEmbedUnimplementedCountryAdminServiceServer() } // UnimplementedCountryAdminServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedCountryAdminServiceServer struct{} func (UnimplementedCountryAdminServiceServer) ListCountries(context.Context, *ListCountriesRequest) (*ListCountriesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListCountries not implemented") } func (UnimplementedCountryAdminServiceServer) UpdateCountry(context.Context, *UpdateCountryRequest) (*CountryResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateCountry not implemented") } func (UnimplementedCountryAdminServiceServer) mustEmbedUnimplementedCountryAdminServiceServer() {} func (UnimplementedCountryAdminServiceServer) testEmbeddedByValue() {} // UnsafeCountryAdminServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CountryAdminServiceServer will // result in compilation errors. type UnsafeCountryAdminServiceServer interface { mustEmbedUnimplementedCountryAdminServiceServer() } func RegisterCountryAdminServiceServer(s grpc.ServiceRegistrar, srv CountryAdminServiceServer) { // If the following call panics, it indicates UnimplementedCountryAdminServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&CountryAdminService_ServiceDesc, srv) } func _CountryAdminService_ListCountries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListCountriesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CountryAdminServiceServer).ListCountries(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CountryAdminService_ListCountries_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CountryAdminServiceServer).ListCountries(ctx, req.(*ListCountriesRequest)) } return interceptor(ctx, in, info, handler) } func _CountryAdminService_UpdateCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateCountryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CountryAdminServiceServer).UpdateCountry(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CountryAdminService_UpdateCountry_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CountryAdminServiceServer).UpdateCountry(ctx, req.(*UpdateCountryRequest)) } return interceptor(ctx, in, info, handler) } // CountryAdminService_ServiceDesc is the grpc.ServiceDesc for CountryAdminService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var CountryAdminService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.CountryAdminService", HandlerType: (*CountryAdminServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListCountries", Handler: _CountryAdminService_ListCountries_Handler, }, { MethodName: "UpdateCountry", Handler: _CountryAdminService_UpdateCountry_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", } const ( CountryQueryService_ListRegistrationCountries_FullMethodName = "/hyapp.user.v1.CountryQueryService/ListRegistrationCountries" CountryQueryService_ListLoginRiskBlockedCountries_FullMethodName = "/hyapp.user.v1.CountryQueryService/ListLoginRiskBlockedCountries" ) // CountryQueryServiceClient is the client API for CountryQueryService 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. // // CountryQueryService 承载 App 注册页公开国家列表查询。 type CountryQueryServiceClient interface { ListRegistrationCountries(ctx context.Context, in *ListRegistrationCountriesRequest, opts ...grpc.CallOption) (*ListRegistrationCountriesResponse, error) ListLoginRiskBlockedCountries(ctx context.Context, in *ListLoginRiskBlockedCountriesRequest, opts ...grpc.CallOption) (*ListLoginRiskBlockedCountriesResponse, error) } type countryQueryServiceClient struct { cc grpc.ClientConnInterface } func NewCountryQueryServiceClient(cc grpc.ClientConnInterface) CountryQueryServiceClient { return &countryQueryServiceClient{cc} } func (c *countryQueryServiceClient) ListRegistrationCountries(ctx context.Context, in *ListRegistrationCountriesRequest, opts ...grpc.CallOption) (*ListRegistrationCountriesResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListRegistrationCountriesResponse) err := c.cc.Invoke(ctx, CountryQueryService_ListRegistrationCountries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *countryQueryServiceClient) ListLoginRiskBlockedCountries(ctx context.Context, in *ListLoginRiskBlockedCountriesRequest, opts ...grpc.CallOption) (*ListLoginRiskBlockedCountriesResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListLoginRiskBlockedCountriesResponse) err := c.cc.Invoke(ctx, CountryQueryService_ListLoginRiskBlockedCountries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // CountryQueryServiceServer is the server API for CountryQueryService service. // All implementations must embed UnimplementedCountryQueryServiceServer // for forward compatibility. // // CountryQueryService 承载 App 注册页公开国家列表查询。 type CountryQueryServiceServer interface { ListRegistrationCountries(context.Context, *ListRegistrationCountriesRequest) (*ListRegistrationCountriesResponse, error) ListLoginRiskBlockedCountries(context.Context, *ListLoginRiskBlockedCountriesRequest) (*ListLoginRiskBlockedCountriesResponse, error) mustEmbedUnimplementedCountryQueryServiceServer() } // UnimplementedCountryQueryServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedCountryQueryServiceServer struct{} func (UnimplementedCountryQueryServiceServer) ListRegistrationCountries(context.Context, *ListRegistrationCountriesRequest) (*ListRegistrationCountriesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListRegistrationCountries not implemented") } func (UnimplementedCountryQueryServiceServer) ListLoginRiskBlockedCountries(context.Context, *ListLoginRiskBlockedCountriesRequest) (*ListLoginRiskBlockedCountriesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListLoginRiskBlockedCountries not implemented") } func (UnimplementedCountryQueryServiceServer) mustEmbedUnimplementedCountryQueryServiceServer() {} func (UnimplementedCountryQueryServiceServer) testEmbeddedByValue() {} // UnsafeCountryQueryServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CountryQueryServiceServer will // result in compilation errors. type UnsafeCountryQueryServiceServer interface { mustEmbedUnimplementedCountryQueryServiceServer() } func RegisterCountryQueryServiceServer(s grpc.ServiceRegistrar, srv CountryQueryServiceServer) { // If the following call panics, it indicates UnimplementedCountryQueryServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&CountryQueryService_ServiceDesc, srv) } func _CountryQueryService_ListRegistrationCountries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListRegistrationCountriesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CountryQueryServiceServer).ListRegistrationCountries(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CountryQueryService_ListRegistrationCountries_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CountryQueryServiceServer).ListRegistrationCountries(ctx, req.(*ListRegistrationCountriesRequest)) } return interceptor(ctx, in, info, handler) } func _CountryQueryService_ListLoginRiskBlockedCountries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListLoginRiskBlockedCountriesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CountryQueryServiceServer).ListLoginRiskBlockedCountries(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CountryQueryService_ListLoginRiskBlockedCountries_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CountryQueryServiceServer).ListLoginRiskBlockedCountries(ctx, req.(*ListLoginRiskBlockedCountriesRequest)) } return interceptor(ctx, in, info, handler) } // CountryQueryService_ServiceDesc is the grpc.ServiceDesc for CountryQueryService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var CountryQueryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.CountryQueryService", HandlerType: (*CountryQueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListRegistrationCountries", Handler: _CountryQueryService_ListRegistrationCountries_Handler, }, { MethodName: "ListLoginRiskBlockedCountries", Handler: _CountryQueryService_ListLoginRiskBlockedCountries_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", } const ( RegionAdminService_ListRegions_FullMethodName = "/hyapp.user.v1.RegionAdminService/ListRegions" RegionAdminService_GetRegion_FullMethodName = "/hyapp.user.v1.RegionAdminService/GetRegion" RegionAdminService_UpdateRegion_FullMethodName = "/hyapp.user.v1.RegionAdminService/UpdateRegion" RegionAdminService_ReplaceRegionCountries_FullMethodName = "/hyapp.user.v1.RegionAdminService/ReplaceRegionCountries" ) // RegionAdminServiceClient is the client API for RegionAdminService 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. // // RegionAdminService 只保留 App 后端需要承接的区域查询、展示字段更新和国家归属替换 RPC。 // 创建区域、启用/禁用区域属于 hyapp-admin-server 后台能力,不在 user-service 暴露 RPC。 type RegionAdminServiceClient interface { ListRegions(ctx context.Context, in *ListRegionsRequest, opts ...grpc.CallOption) (*ListRegionsResponse, error) GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*RegionResponse, error) UpdateRegion(ctx context.Context, in *UpdateRegionRequest, opts ...grpc.CallOption) (*RegionResponse, error) ReplaceRegionCountries(ctx context.Context, in *ReplaceRegionCountriesRequest, opts ...grpc.CallOption) (*RegionResponse, error) } type regionAdminServiceClient struct { cc grpc.ClientConnInterface } func NewRegionAdminServiceClient(cc grpc.ClientConnInterface) RegionAdminServiceClient { return ®ionAdminServiceClient{cc} } func (c *regionAdminServiceClient) ListRegions(ctx context.Context, in *ListRegionsRequest, opts ...grpc.CallOption) (*ListRegionsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListRegionsResponse) err := c.cc.Invoke(ctx, RegionAdminService_ListRegions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *regionAdminServiceClient) GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*RegionResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RegionResponse) err := c.cc.Invoke(ctx, RegionAdminService_GetRegion_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *regionAdminServiceClient) UpdateRegion(ctx context.Context, in *UpdateRegionRequest, opts ...grpc.CallOption) (*RegionResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RegionResponse) err := c.cc.Invoke(ctx, RegionAdminService_UpdateRegion_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *regionAdminServiceClient) ReplaceRegionCountries(ctx context.Context, in *ReplaceRegionCountriesRequest, opts ...grpc.CallOption) (*RegionResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RegionResponse) err := c.cc.Invoke(ctx, RegionAdminService_ReplaceRegionCountries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // RegionAdminServiceServer is the server API for RegionAdminService service. // All implementations must embed UnimplementedRegionAdminServiceServer // for forward compatibility. // // RegionAdminService 只保留 App 后端需要承接的区域查询、展示字段更新和国家归属替换 RPC。 // 创建区域、启用/禁用区域属于 hyapp-admin-server 后台能力,不在 user-service 暴露 RPC。 type RegionAdminServiceServer interface { ListRegions(context.Context, *ListRegionsRequest) (*ListRegionsResponse, error) GetRegion(context.Context, *GetRegionRequest) (*RegionResponse, error) UpdateRegion(context.Context, *UpdateRegionRequest) (*RegionResponse, error) ReplaceRegionCountries(context.Context, *ReplaceRegionCountriesRequest) (*RegionResponse, error) mustEmbedUnimplementedRegionAdminServiceServer() } // UnimplementedRegionAdminServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedRegionAdminServiceServer struct{} func (UnimplementedRegionAdminServiceServer) ListRegions(context.Context, *ListRegionsRequest) (*ListRegionsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListRegions not implemented") } func (UnimplementedRegionAdminServiceServer) GetRegion(context.Context, *GetRegionRequest) (*RegionResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetRegion not implemented") } func (UnimplementedRegionAdminServiceServer) UpdateRegion(context.Context, *UpdateRegionRequest) (*RegionResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateRegion not implemented") } func (UnimplementedRegionAdminServiceServer) ReplaceRegionCountries(context.Context, *ReplaceRegionCountriesRequest) (*RegionResponse, error) { return nil, status.Error(codes.Unimplemented, "method ReplaceRegionCountries not implemented") } func (UnimplementedRegionAdminServiceServer) mustEmbedUnimplementedRegionAdminServiceServer() {} func (UnimplementedRegionAdminServiceServer) testEmbeddedByValue() {} // UnsafeRegionAdminServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RegionAdminServiceServer will // result in compilation errors. type UnsafeRegionAdminServiceServer interface { mustEmbedUnimplementedRegionAdminServiceServer() } func RegisterRegionAdminServiceServer(s grpc.ServiceRegistrar, srv RegionAdminServiceServer) { // If the following call panics, it indicates UnimplementedRegionAdminServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&RegionAdminService_ServiceDesc, srv) } func _RegionAdminService_ListRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListRegionsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(RegionAdminServiceServer).ListRegions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: RegionAdminService_ListRegions_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RegionAdminServiceServer).ListRegions(ctx, req.(*ListRegionsRequest)) } return interceptor(ctx, in, info, handler) } func _RegionAdminService_GetRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetRegionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(RegionAdminServiceServer).GetRegion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: RegionAdminService_GetRegion_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RegionAdminServiceServer).GetRegion(ctx, req.(*GetRegionRequest)) } return interceptor(ctx, in, info, handler) } func _RegionAdminService_UpdateRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateRegionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(RegionAdminServiceServer).UpdateRegion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: RegionAdminService_UpdateRegion_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RegionAdminServiceServer).UpdateRegion(ctx, req.(*UpdateRegionRequest)) } return interceptor(ctx, in, info, handler) } func _RegionAdminService_ReplaceRegionCountries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ReplaceRegionCountriesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(RegionAdminServiceServer).ReplaceRegionCountries(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: RegionAdminService_ReplaceRegionCountries_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RegionAdminServiceServer).ReplaceRegionCountries(ctx, req.(*ReplaceRegionCountriesRequest)) } return interceptor(ctx, in, info, handler) } // RegionAdminService_ServiceDesc is the grpc.ServiceDesc for RegionAdminService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var RegionAdminService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.RegionAdminService", HandlerType: (*RegionAdminServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListRegions", Handler: _RegionAdminService_ListRegions_Handler, }, { MethodName: "GetRegion", Handler: _RegionAdminService_GetRegion_Handler, }, { MethodName: "UpdateRegion", Handler: _RegionAdminService_UpdateRegion_Handler, }, { MethodName: "ReplaceRegionCountries", Handler: _RegionAdminService_ReplaceRegionCountries_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", } const ( UserIdentityService_GetUserIdentity_FullMethodName = "/hyapp.user.v1.UserIdentityService/GetUserIdentity" UserIdentityService_ResolveDisplayUserID_FullMethodName = "/hyapp.user.v1.UserIdentityService/ResolveDisplayUserID" UserIdentityService_ChangeDisplayUserID_FullMethodName = "/hyapp.user.v1.UserIdentityService/ChangeDisplayUserID" UserIdentityService_ApplyPrettyDisplayUserID_FullMethodName = "/hyapp.user.v1.UserIdentityService/ApplyPrettyDisplayUserID" UserIdentityService_ExpirePrettyDisplayUserID_FullMethodName = "/hyapp.user.v1.UserIdentityService/ExpirePrettyDisplayUserID" ) // UserIdentityServiceClient is the client API for UserIdentityService 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. // // UserIdentityService 是短号解析和变更的唯一内部 owner。 type UserIdentityServiceClient interface { GetUserIdentity(ctx context.Context, in *GetUserIdentityRequest, opts ...grpc.CallOption) (*GetUserIdentityResponse, error) ResolveDisplayUserID(ctx context.Context, in *ResolveDisplayUserIDRequest, opts ...grpc.CallOption) (*ResolveDisplayUserIDResponse, error) ChangeDisplayUserID(ctx context.Context, in *ChangeDisplayUserIDRequest, opts ...grpc.CallOption) (*ChangeDisplayUserIDResponse, error) ApplyPrettyDisplayUserID(ctx context.Context, in *ApplyPrettyDisplayUserIDRequest, opts ...grpc.CallOption) (*ApplyPrettyDisplayUserIDResponse, error) ExpirePrettyDisplayUserID(ctx context.Context, in *ExpirePrettyDisplayUserIDRequest, opts ...grpc.CallOption) (*ExpirePrettyDisplayUserIDResponse, error) } type userIdentityServiceClient struct { cc grpc.ClientConnInterface } func NewUserIdentityServiceClient(cc grpc.ClientConnInterface) UserIdentityServiceClient { return &userIdentityServiceClient{cc} } func (c *userIdentityServiceClient) GetUserIdentity(ctx context.Context, in *GetUserIdentityRequest, opts ...grpc.CallOption) (*GetUserIdentityResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserIdentityResponse) err := c.cc.Invoke(ctx, UserIdentityService_GetUserIdentity_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userIdentityServiceClient) ResolveDisplayUserID(ctx context.Context, in *ResolveDisplayUserIDRequest, opts ...grpc.CallOption) (*ResolveDisplayUserIDResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ResolveDisplayUserIDResponse) err := c.cc.Invoke(ctx, UserIdentityService_ResolveDisplayUserID_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userIdentityServiceClient) ChangeDisplayUserID(ctx context.Context, in *ChangeDisplayUserIDRequest, opts ...grpc.CallOption) (*ChangeDisplayUserIDResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangeDisplayUserIDResponse) err := c.cc.Invoke(ctx, UserIdentityService_ChangeDisplayUserID_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userIdentityServiceClient) ApplyPrettyDisplayUserID(ctx context.Context, in *ApplyPrettyDisplayUserIDRequest, opts ...grpc.CallOption) (*ApplyPrettyDisplayUserIDResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ApplyPrettyDisplayUserIDResponse) err := c.cc.Invoke(ctx, UserIdentityService_ApplyPrettyDisplayUserID_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *userIdentityServiceClient) ExpirePrettyDisplayUserID(ctx context.Context, in *ExpirePrettyDisplayUserIDRequest, opts ...grpc.CallOption) (*ExpirePrettyDisplayUserIDResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ExpirePrettyDisplayUserIDResponse) err := c.cc.Invoke(ctx, UserIdentityService_ExpirePrettyDisplayUserID_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // UserIdentityServiceServer is the server API for UserIdentityService service. // All implementations must embed UnimplementedUserIdentityServiceServer // for forward compatibility. // // UserIdentityService 是短号解析和变更的唯一内部 owner。 type UserIdentityServiceServer interface { GetUserIdentity(context.Context, *GetUserIdentityRequest) (*GetUserIdentityResponse, error) ResolveDisplayUserID(context.Context, *ResolveDisplayUserIDRequest) (*ResolveDisplayUserIDResponse, error) ChangeDisplayUserID(context.Context, *ChangeDisplayUserIDRequest) (*ChangeDisplayUserIDResponse, error) ApplyPrettyDisplayUserID(context.Context, *ApplyPrettyDisplayUserIDRequest) (*ApplyPrettyDisplayUserIDResponse, error) ExpirePrettyDisplayUserID(context.Context, *ExpirePrettyDisplayUserIDRequest) (*ExpirePrettyDisplayUserIDResponse, error) mustEmbedUnimplementedUserIdentityServiceServer() } // UnimplementedUserIdentityServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedUserIdentityServiceServer struct{} func (UnimplementedUserIdentityServiceServer) GetUserIdentity(context.Context, *GetUserIdentityRequest) (*GetUserIdentityResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetUserIdentity not implemented") } func (UnimplementedUserIdentityServiceServer) ResolveDisplayUserID(context.Context, *ResolveDisplayUserIDRequest) (*ResolveDisplayUserIDResponse, error) { return nil, status.Error(codes.Unimplemented, "method ResolveDisplayUserID not implemented") } func (UnimplementedUserIdentityServiceServer) ChangeDisplayUserID(context.Context, *ChangeDisplayUserIDRequest) (*ChangeDisplayUserIDResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeDisplayUserID not implemented") } func (UnimplementedUserIdentityServiceServer) ApplyPrettyDisplayUserID(context.Context, *ApplyPrettyDisplayUserIDRequest) (*ApplyPrettyDisplayUserIDResponse, error) { return nil, status.Error(codes.Unimplemented, "method ApplyPrettyDisplayUserID not implemented") } func (UnimplementedUserIdentityServiceServer) ExpirePrettyDisplayUserID(context.Context, *ExpirePrettyDisplayUserIDRequest) (*ExpirePrettyDisplayUserIDResponse, error) { return nil, status.Error(codes.Unimplemented, "method ExpirePrettyDisplayUserID not implemented") } func (UnimplementedUserIdentityServiceServer) mustEmbedUnimplementedUserIdentityServiceServer() {} func (UnimplementedUserIdentityServiceServer) testEmbeddedByValue() {} // UnsafeUserIdentityServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserIdentityServiceServer will // result in compilation errors. type UnsafeUserIdentityServiceServer interface { mustEmbedUnimplementedUserIdentityServiceServer() } func RegisterUserIdentityServiceServer(s grpc.ServiceRegistrar, srv UserIdentityServiceServer) { // If the following call panics, it indicates UnimplementedUserIdentityServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&UserIdentityService_ServiceDesc, srv) } func _UserIdentityService_GetUserIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUserIdentityRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserIdentityServiceServer).GetUserIdentity(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserIdentityService_GetUserIdentity_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserIdentityServiceServer).GetUserIdentity(ctx, req.(*GetUserIdentityRequest)) } return interceptor(ctx, in, info, handler) } func _UserIdentityService_ResolveDisplayUserID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ResolveDisplayUserIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserIdentityServiceServer).ResolveDisplayUserID(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserIdentityService_ResolveDisplayUserID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserIdentityServiceServer).ResolveDisplayUserID(ctx, req.(*ResolveDisplayUserIDRequest)) } return interceptor(ctx, in, info, handler) } func _UserIdentityService_ChangeDisplayUserID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeDisplayUserIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserIdentityServiceServer).ChangeDisplayUserID(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserIdentityService_ChangeDisplayUserID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserIdentityServiceServer).ChangeDisplayUserID(ctx, req.(*ChangeDisplayUserIDRequest)) } return interceptor(ctx, in, info, handler) } func _UserIdentityService_ApplyPrettyDisplayUserID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ApplyPrettyDisplayUserIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserIdentityServiceServer).ApplyPrettyDisplayUserID(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserIdentityService_ApplyPrettyDisplayUserID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserIdentityServiceServer).ApplyPrettyDisplayUserID(ctx, req.(*ApplyPrettyDisplayUserIDRequest)) } return interceptor(ctx, in, info, handler) } func _UserIdentityService_ExpirePrettyDisplayUserID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ExpirePrettyDisplayUserIDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserIdentityServiceServer).ExpirePrettyDisplayUserID(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UserIdentityService_ExpirePrettyDisplayUserID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserIdentityServiceServer).ExpirePrettyDisplayUserID(ctx, req.(*ExpirePrettyDisplayUserIDRequest)) } return interceptor(ctx, in, info, handler) } // UserIdentityService_ServiceDesc is the grpc.ServiceDesc for UserIdentityService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var UserIdentityService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyapp.user.v1.UserIdentityService", HandlerType: (*UserIdentityServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserIdentity", Handler: _UserIdentityService_GetUserIdentity_Handler, }, { MethodName: "ResolveDisplayUserID", Handler: _UserIdentityService_ResolveDisplayUserID_Handler, }, { MethodName: "ChangeDisplayUserID", Handler: _UserIdentityService_ChangeDisplayUserID_Handler, }, { MethodName: "ApplyPrettyDisplayUserID", Handler: _UserIdentityService_ApplyPrettyDisplayUserID_Handler, }, { MethodName: "ExpirePrettyDisplayUserID", Handler: _UserIdentityService_ExpirePrettyDisplayUserID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/v1/user.proto", }