|
@@ -202,6 +202,8 @@ type UserClient interface {
|
|
|
UpdateUserMatchedNum(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
UpdateUserMatchedNum(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 更新今日被匹配数并返回用户信息
|
|
// 更新今日被匹配数并返回用户信息
|
|
|
UpdateUserMatchedNumAndReturnUserMsg(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*UpdateUserMatchedNumAndReturnUserMsgReply, error)
|
|
UpdateUserMatchedNumAndReturnUserMsg(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*UpdateUserMatchedNumAndReturnUserMsgReply, error)
|
|
|
|
|
+ // 获取未匹配的离线用户
|
|
|
|
|
+ GetRecommendUserDB(ctx context.Context, in *GetRecommendUserDBRequest, opts ...grpc.CallOption) (*common.PersonDB, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type userClient struct {
|
|
type userClient struct {
|
|
@@ -1004,6 +1006,15 @@ func (c *userClient) UpdateUserMatchedNumAndReturnUserMsg(ctx context.Context, i
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *userClient) GetRecommendUserDB(ctx context.Context, in *GetRecommendUserDBRequest, opts ...grpc.CallOption) (*common.PersonDB, error) {
|
|
|
|
|
+ out := new(common.PersonDB)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/api.user.User/GetRecommendUserDB", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// UserServer is the server API for User service.
|
|
// UserServer is the server API for User service.
|
|
|
// All implementations must embed UnimplementedUserServer
|
|
// All implementations must embed UnimplementedUserServer
|
|
|
// for forward compatibility
|
|
// for forward compatibility
|
|
@@ -1188,6 +1199,8 @@ type UserServer interface {
|
|
|
UpdateUserMatchedNum(context.Context, *UpdateUserMatchedNumRequest) (*emptypb.Empty, error)
|
|
UpdateUserMatchedNum(context.Context, *UpdateUserMatchedNumRequest) (*emptypb.Empty, error)
|
|
|
// 更新今日被匹配数并返回用户信息
|
|
// 更新今日被匹配数并返回用户信息
|
|
|
UpdateUserMatchedNumAndReturnUserMsg(context.Context, *UpdateUserMatchedNumRequest) (*UpdateUserMatchedNumAndReturnUserMsgReply, error)
|
|
UpdateUserMatchedNumAndReturnUserMsg(context.Context, *UpdateUserMatchedNumRequest) (*UpdateUserMatchedNumAndReturnUserMsgReply, error)
|
|
|
|
|
+ // 获取未匹配的离线用户
|
|
|
|
|
+ GetRecommendUserDB(context.Context, *GetRecommendUserDBRequest) (*common.PersonDB, error)
|
|
|
mustEmbedUnimplementedUserServer()
|
|
mustEmbedUnimplementedUserServer()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1459,6 +1472,9 @@ func (UnimplementedUserServer) UpdateUserMatchedNum(context.Context, *UpdateUser
|
|
|
func (UnimplementedUserServer) UpdateUserMatchedNumAndReturnUserMsg(context.Context, *UpdateUserMatchedNumRequest) (*UpdateUserMatchedNumAndReturnUserMsgReply, error) {
|
|
func (UnimplementedUserServer) UpdateUserMatchedNumAndReturnUserMsg(context.Context, *UpdateUserMatchedNumRequest) (*UpdateUserMatchedNumAndReturnUserMsgReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserMatchedNumAndReturnUserMsg not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserMatchedNumAndReturnUserMsg not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (UnimplementedUserServer) GetRecommendUserDB(context.Context, *GetRecommendUserDBRequest) (*common.PersonDB, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetRecommendUserDB not implemented")
|
|
|
|
|
+}
|
|
|
func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
|
|
func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
|
|
|
|
|
|
|
|
// UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
|
|
// UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -3056,6 +3072,24 @@ func _User_UpdateUserMatchedNumAndReturnUserMsg_Handler(srv interface{}, ctx con
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _User_GetRecommendUserDB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(GetRecommendUserDBRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(UserServer).GetRecommendUserDB(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/api.user.User/GetRecommendUserDB",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(UserServer).GetRecommendUserDB(ctx, req.(*GetRecommendUserDBRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// User_ServiceDesc is the grpc.ServiceDesc for User service.
|
|
// User_ServiceDesc is the grpc.ServiceDesc for User service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -3415,6 +3449,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "UpdateUserMatchedNumAndReturnUserMsg",
|
|
MethodName: "UpdateUserMatchedNumAndReturnUserMsg",
|
|
|
Handler: _User_UpdateUserMatchedNumAndReturnUserMsg_Handler,
|
|
Handler: _User_UpdateUserMatchedNumAndReturnUserMsg_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "GetRecommendUserDB",
|
|
|
|
|
+ Handler: _User_GetRecommendUserDB_Handler,
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "user.proto",
|
|
Metadata: "user.proto",
|