|
|
@@ -194,6 +194,8 @@ type UserClient interface {
|
|
|
SendNewMessageUnreadReminder(ctx context.Context, in *SendNewMessageUnreadReminderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 好友访问提醒
|
|
|
SendNewVisitorTemplateReminder(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
+ // 更新今日被匹配数
|
|
|
+ UpdateUserMatchedNum(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
}
|
|
|
|
|
|
type userClient struct {
|
|
|
@@ -960,6 +962,15 @@ func (c *userClient) SendNewVisitorTemplateReminder(ctx context.Context, in *com
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *userClient) UpdateUserMatchedNum(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
+ out := new(emptypb.Empty)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserMatchedNum", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// UserServer is the server API for User service.
|
|
|
// All implementations must embed UnimplementedUserServer
|
|
|
// for forward compatibility
|
|
|
@@ -1136,6 +1147,8 @@ type UserServer interface {
|
|
|
SendNewMessageUnreadReminder(context.Context, *SendNewMessageUnreadReminderRequest) (*emptypb.Empty, error)
|
|
|
// 好友访问提醒
|
|
|
SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
+ // 更新今日被匹配数
|
|
|
+ UpdateUserMatchedNum(context.Context, *UpdateUserMatchedNumRequest) (*emptypb.Empty, error)
|
|
|
mustEmbedUnimplementedUserServer()
|
|
|
}
|
|
|
|
|
|
@@ -1395,6 +1408,9 @@ func (UnimplementedUserServer) SendNewMessageUnreadReminder(context.Context, *Se
|
|
|
func (UnimplementedUserServer) SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SendNewVisitorTemplateReminder not implemented")
|
|
|
}
|
|
|
+func (UnimplementedUserServer) UpdateUserMatchedNum(context.Context, *UpdateUserMatchedNumRequest) (*emptypb.Empty, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateUserMatchedNum not implemented")
|
|
|
+}
|
|
|
func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
|
|
|
|
|
|
// UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
|
|
|
@@ -2920,6 +2936,24 @@ func _User_SendNewVisitorTemplateReminder_Handler(srv interface{}, ctx context.C
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _User_UpdateUserMatchedNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(UpdateUserMatchedNumRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(UserServer).UpdateUserMatchedNum(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.user.User/UpdateUserMatchedNum",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(UserServer).UpdateUserMatchedNum(ctx, req.(*UpdateUserMatchedNumRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
// User_ServiceDesc is the grpc.ServiceDesc for User service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
|
@@ -3263,6 +3297,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "SendNewVisitorTemplateReminder",
|
|
|
Handler: _User_SendNewVisitorTemplateReminder_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "UpdateUserMatchedNum",
|
|
|
+ Handler: _User_UpdateUserMatchedNum_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "user.proto",
|