/// <summary> /// 返回收藏列表 /// </summary> /// <param name="userId"></param> /// <returns></returns> public List <UserCollect> GetCollectList(int userId) { var InfoList = collectServer.GetCollectList(userId); foreach (var item in InfoList) { item.BookInfo.ImageInfo = imageServer.GetimageInfo(item.BookInfo.ImageId); } return(InfoList); }
/// <summary> /// /// </summary> /// <param name="pageIndex"></param> /// <param name="pageSize"></param> /// <param name="UserId"></param> /// <param name="FoTypeId">预约状态,默认0 所有 预约中 1 已取走 2 已过期 3 </param> /// <returns></returns> public Pager<ForwardInfo> GetReservationPagerList(int pageIndex, int pageSize, int UserId = 0, int FoTypeId = 0) { int dataCount = reservationServer.GetReservationList(UserId,FoTypeId: FoTypeId).Count; List<ForwardInfo> InfoList = reservationServer.GetReservationList(UserId,FoTypeId, true, pageIndex: pageIndex, pageSize: pageSize); foreach (var item in InfoList) { item.BookInfo.ImageInfo = imageServer.GetimageInfo(item.BookInfo.ImageId); } Pager<ForwardInfo> pager = new Pager<ForwardInfo>(pageIndex, pageSize, dataCount, InfoList); return pager; }