using System.Collections.Generic; using Mapster; using SqlSugar; namespace Magic.Core; public class PageResult { public int PageNo { get; set; } public int PageSize { get; set; } public int TotalPage { get; set; } public int TotalRows { get; set; } public ICollection Rows { get; set; } } /// /// 小诺分页列表结果 /// public static class PageResult { /// /// 替换sqlsugar分页 /// /// /// public static dynamic XnPagedResult(this SqlSugarPagedList page) { return new { PageNo = page.PageIndex, PageSize = page.PageSize, TotalPage = page.TotalPages, TotalRows = page.TotalCount, Rows = page.Items }; } }