Customize the paging object for front-end and back-end interaction

 

The attribute of paging object

    public static final String ASC = "ASC";  //升序默认
    public static final String DESC = "DESC";//降序
    private int start = 0;  //开始页
    private int pageSize = 10;//页面数据容量
    private int totalPages; //总页数
    private String sort;  //排序,是否排序--一知半解
    private String dir;  //看不懂
    private List<T> result = Collections.emptyList(); //装载数据的集合
    private long totalProperty = 0L;  //看不懂

 

Published 22 original articles · Like 3 · Visitor 3442

Guess you like

Origin blog.csdn.net/ChyoD1811/article/details/99304873
Recommended