Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FriendServiceInterface

Hierarchy

  • FriendServiceInterface

Index

Methods

  • 直接加为好友

    直接加某个用户为好友后, 对方不需要确认, 直接成为当前登录用户的好友。 对方会收到一条类型为 类型为 type 为 friendReuqest 的系统通知,attach.type 为 addFriend,, 此类系统通知的 from 字段的值为申请方的帐号, to 字段的值为接收方的账号。

    Parameters

    Returns Promise<FriendProfile>

  • 申请加为好友

    申请加某个用户为好友后, 对方会收到一条类型为 type 为 friendReuqest 的系统通知,attach.type 为 applyFriend, 用户在收到好友申请后, 可以选择通过或者拒绝好友申请

    Parameters

    Returns Promise<void>

  • 删除好友

    删除好友后, 被删除的人会收到一条类型为 type 为 deleteFriend 的系统通知 此类系统通知的 from 字段的值为删除方的帐号, to 字段的值为被删除方的账号。

    Parameters

    Returns Promise<void>

  • 通过好友申请

    通过申请后, 对方会收到一条类型为 type 为 friendReuqest 的系统通知,attach.type 为 passFriendApply,

    Parameters

    Returns Promise<void>

  • 拒绝好友申请

    拒绝申请后, 对方会收到一条类型为 type 为 friendReuqest 的系统通知,attach.type 为 rejectFriendApply,

    Parameters

    Returns Promise<void>

  • 更新好友

    只能更新备注和扩展字段

    Parameters

    Returns Promise<void>