public static List <FriendModel> GetListAll(int playerId) { return(FriendDAL.GetListAll(playerId)); }
/// <summary> /// 向friend表插入数据(分表插入,如果不存在表,则先建立表,并将表名称缓存起来) /// </summary> /// <param name="model"></param> /// <param name="friendTableNameCacheList"></param> /// <returns></returns> public static bool InsertSuccessForSplitTable(FriendModel model, List <string> friendTableNameCacheList) { return(FriendDAL.InsertSuccessForSplitTable(model, friendTableNameCacheList)); }
public void ignoreRequest(int requestId) { FriendDAL dal = new FriendDAL(); dal.ignoreFriendRequest(requestId); }
public void acceptRequest(int requestId) { FriendDAL dal = new FriendDAL(); dal.acceptFriendRequest(requestId); }
public void sendRequest(int fromUser, int toUser) { FriendDAL dal = new FriendDAL(); dal.sendFriendRequest(toUser, fromUser); }
public List <User> getFriendList(int userId) { FriendDAL friendDAL = new FriendDAL(); return(friendDAL.getFriendList(userId)); }