|
|
@@ -240,10 +240,6 @@ type UserClient interface {
|
|
|
ReplyScripReduceCredit(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 匹配扣费
|
|
|
MatchingCredit(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
- // 未读发送模板消息
|
|
|
- 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)
|
|
|
// 更新今日被匹配数并返回用户信息
|
|
|
UpdateUserMatchedNumAndReturnUserMsg(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*UpdateUserMatchedNumAndReturnUserMsgReply, error)
|
|
|
// 获取未匹配的离线用户
|
|
|
@@ -1242,24 +1238,6 @@ func (c *userClient) MatchingCredit(ctx context.Context, in *common.PersonParam,
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *userClient) SendNewMessageUnreadReminder(ctx context.Context, in *SendNewMessageUnreadReminderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
- out := new(emptypb.Empty)
|
|
|
- err := c.cc.Invoke(ctx, "/api.user.User/SendNewMessageUnreadReminder", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userClient) SendNewVisitorTemplateReminder(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
- out := new(emptypb.Empty)
|
|
|
- err := c.cc.Invoke(ctx, "/api.user.User/SendNewVisitorTemplateReminder", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
func (c *userClient) UpdateUserMatchedNumAndReturnUserMsg(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*UpdateUserMatchedNumAndReturnUserMsgReply, error) {
|
|
|
out := new(UpdateUserMatchedNumAndReturnUserMsgReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserMatchedNumAndReturnUserMsg", in, out, opts...)
|
|
|
@@ -1590,10 +1568,6 @@ type UserServer interface {
|
|
|
ReplyScripReduceCredit(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
// 匹配扣费
|
|
|
MatchingCredit(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
- // 未读发送模板消息
|
|
|
- SendNewMessageUnreadReminder(context.Context, *SendNewMessageUnreadReminderRequest) (*emptypb.Empty, error)
|
|
|
- // 好友访问提醒
|
|
|
- SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
// 更新今日被匹配数并返回用户信息
|
|
|
UpdateUserMatchedNumAndReturnUserMsg(context.Context, *UpdateUserMatchedNumRequest) (*UpdateUserMatchedNumAndReturnUserMsgReply, error)
|
|
|
// 获取未匹配的离线用户
|
|
|
@@ -1947,12 +1921,6 @@ func (UnimplementedUserServer) ReplyScripReduceCredit(context.Context, *common.P
|
|
|
func (UnimplementedUserServer) MatchingCredit(context.Context, *common.PersonParam) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method MatchingCredit not implemented")
|
|
|
}
|
|
|
-func (UnimplementedUserServer) SendNewMessageUnreadReminder(context.Context, *SendNewMessageUnreadReminderRequest) (*emptypb.Empty, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method SendNewMessageUnreadReminder not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserServer) SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method SendNewVisitorTemplateReminder not implemented")
|
|
|
-}
|
|
|
func (UnimplementedUserServer) UpdateUserMatchedNumAndReturnUserMsg(context.Context, *UpdateUserMatchedNumRequest) (*UpdateUserMatchedNumAndReturnUserMsgReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserMatchedNumAndReturnUserMsg not implemented")
|
|
|
}
|
|
|
@@ -3928,42 +3896,6 @@ func _User_MatchingCredit_Handler(srv interface{}, ctx context.Context, dec func
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _User_SendNewMessageUnreadReminder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(SendNewMessageUnreadReminderRequest)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserServer).SendNewMessageUnreadReminder(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/api.user.User/SendNewMessageUnreadReminder",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserServer).SendNewMessageUnreadReminder(ctx, req.(*SendNewMessageUnreadReminderRequest))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _User_SendNewVisitorTemplateReminder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(common.PersonIDParam)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserServer).SendNewVisitorTemplateReminder(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/api.user.User/SendNewVisitorTemplateReminder",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserServer).SendNewVisitorTemplateReminder(ctx, req.(*common.PersonIDParam))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
func _User_UpdateUserMatchedNumAndReturnUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(UpdateUserMatchedNumRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
@@ -4615,14 +4547,6 @@ var User_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "MatchingCredit",
|
|
|
Handler: _User_MatchingCredit_Handler,
|
|
|
},
|
|
|
- {
|
|
|
- MethodName: "SendNewMessageUnreadReminder",
|
|
|
- Handler: _User_SendNewMessageUnreadReminder_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "SendNewVisitorTemplateReminder",
|
|
|
- Handler: _User_SendNewVisitorTemplateReminder_Handler,
|
|
|
- },
|
|
|
{
|
|
|
MethodName: "UpdateUserMatchedNumAndReturnUserMsg",
|
|
|
Handler: _User_UpdateUserMatchedNumAndReturnUserMsg_Handler,
|