Browse Source

update

master
DengBiao 1 year ago
parent
commit
6171254c49
2 changed files with 7 additions and 0 deletions
  1. +6
    -0
      internal/logic/domain/friend/friend_service.go
  2. +1
    -0
      pkg/proto/push.ext.proto

+ 6
- 0
internal/logic/domain/friend/friend_service.go View File

@@ -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
}


+ 1
- 0
pkg/proto/push.ext.proto View File

@@ -8,6 +8,7 @@ enum PushCode {
PC_ADD_DEFAULT = 0;

PC_ADD_FRIEND = 100; // 添加好友请求

PC_AGREE_ADD_FRIEND = 101; // 同意添加好友

PC_UPDATE_GROUP = 110; // 更新群组


Loading…
Cancel
Save