From 6171254c49e30da616223ed2762ef7f1df1f46d4 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 18 Apr 2023 10:49:03 +0800 Subject: [PATCH] update --- internal/logic/domain/friend/friend_service.go | 6 ++++++ pkg/proto/push.ext.proto | 1 + 2 files changed, 7 insertions(+) diff --git a/internal/logic/domain/friend/friend_service.go b/internal/logic/domain/friend/friend_service.go index 9ba611c..e1e0140 100644 --- a/internal/logic/domain/friend/friend_service.go +++ b/internal/logic/domain/friend/friend_service.go @@ -183,6 +183,12 @@ func (*friendService) AgreeAddFriend(ctx context.Context, userId, friendId int64 Nickname: resp.User.Nickname, AvatarUrl: resp.User.AvatarUrl, }, true) + utils.FilePutContents("push_AgreeAddFriend", utils.SerializeStr(map[string]interface{}{ + "friend_id": userId, + "friend_nick_name": resp.User.Nickname, + "friend_avatar_url": resp.User.AvatarUrl, + "err": err, + })) if err != nil { return err } diff --git a/pkg/proto/push.ext.proto b/pkg/proto/push.ext.proto index 6cbaf8b..4a31976 100644 --- a/pkg/proto/push.ext.proto +++ b/pkg/proto/push.ext.proto @@ -8,6 +8,7 @@ enum PushCode { PC_ADD_DEFAULT = 0; PC_ADD_FRIEND = 100; // 添加好友请求 + PC_AGREE_ADD_FRIEND = 101; // 同意添加好友 PC_UPDATE_GROUP = 110; // 更新群组