| | |
| | | /// <summary> |
| | | /// 查询分页列表 |
| | | /// </summary> |
| | | /// <typeparam name="TCallback"></typeparam> |
| | | /// <typeparam name="TResult"></typeparam> |
| | | /// <typeparam name="TItem"></typeparam> |
| | | public abstract class PagedListQuery<TCallback, TItem> |
| | | where TCallback : PagedListQueryResult<TItem>, new() |
| | | public abstract class PagedListQuery<TResult, TItem> |
| | | where TResult : PagedListQueryResult<TItem>, new() |
| | | where TItem : class, new() |
| | | { |
| | | protected PagedListQuery() |
| | | { |
| | | PageModel = new PagedListQueryPageModel(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 分页信息 |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | public class PagedListQueryPageModel |
| | | { |
| | | public PagedListQueryPageModel() |
| | | { |
| | | Page = 1; |
| | | Rows = 40; |
| | | OrderInput = []; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 行数 |
| | | /// </summary> |
| | |
| | | public int Page { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 总数 |
| | | /// 排序 |
| | | /// </summary> |
| | | public int TotalCount { get; set; } |
| | | public List<PagedListQueryPageModelOrderInput> OrderInput { get; set; } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | public class PagedListQueryResultPageModel : PagedListQueryPageModel |
| | | { |
| | | /// <summary> |
| | | /// 总数 |
| | | /// </summary> |
| | | public int TotalCount { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 页数 |
| | | /// </summary> |
| | | public int TotalPage { get; set; } |