/// <summary> /// 获取被邀请好友列表 /// </summary> /// <param name="managerId"></param> /// <returns></returns> public FriendsAddInfoResponse GetFriendRequestList(Guid managerId) { var response = ResponseHelper.Create <FriendsAddInfoResponse>(MessageCode.Success); response.Data = new FriendsAddInfo { FriendAddList = FriendManagerMgr.GetFriendAddList(managerId) }; return(response); }
/// <summary> /// 是否有好友邀请 /// </summary> /// <param name="managerId"></param> /// <returns></returns> public bool HasFriendRequest(Guid managerId) { var list = FriendManagerMgr.GetFriendAddList(managerId); if (list == null) { return(false); } if (list.Count > 0) { return(true); } return(false); }