Example #1
0
        /// <summary>
        /// 获取词、句、新闻信息分页列表数据
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="target">目标数据类型:0-词 1-句 2-新闻</param>
        /// <param name="sort">排序方式:0-升序,1-降序</param>
        /// <returns></returns>
        private static PageResult <WsnContent> GetWsnContentList(int pageIndex, int pageSize, int target, int sort)
        {
            PageResult <WsnContent> pageResult = new PageResult <WsnContent>
            {
                RecordCount = MaterialData.GetWsnContentCount(target),
                PageIndex   = pageIndex,
                PageSize    = pageSize
            };

            pageResult.Data = MaterialData.GetWsnContentList(pageResult.PageIndex, pageResult.PageSize, target, sort);
            return(pageResult);
        }