增加云仓数据
This commit is contained in:
1 parent
2dfec55b5f
commit
55258d0d91
14 files changed
+2733
-1028
No files matched your search
@@ -30,5 +30,22 @@ namespace AllBase.Model.Result
|
||||
public int Page { get; set; }
|
||||
public int Total { get; set; }
|
||||
}
|
||||
|
||||
public class PageData<T>
|
||||
{
|
||||
public long Total { get; set; }
|
||||
public int PageIndex { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
public int TotalPages => PageSize > 0 ? (int)Math.Ceiling((double)Total / PageSize) : 0;
|
||||
public List<T> List { get; set; }
|
||||
|
||||
public PageData() { }
|
||||
|
||||
public PageData(List<T> list, long total, int pageIndex, int pageSize)
|
||||
{
|
||||
List = list;
|
||||
Total = total;
|
||||
PageIndex = pageIndex;
|
||||
PageSize = pageSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user