package com.njcn.web.pojo.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * pqs
 *
 * @author cdf
 * @date 2024/5/15
 */
@Data
public class PmsPage<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    public List<T> list = Collections.emptyList();

    /**
     * 总数
     */
    public long total = 0;
    /**
     * 每页显示条数，默认 10
     */
    public long size = 10;

    /**
     * 当前页
     */
    public long current = 1;

    public long pageNum;
    public long pageSize;
    public long pages;
    public long prePage;
    public long startRow;

    private int endRow;
    private boolean hasNextPage;
    private boolean hasPreviousPage;
    private boolean isFirstPage;
    private boolean isLastPage;
    private int navigateFirstPage;
    private int navigateLastPage;
    private int navigatePages;
    private List<String> navigatepageNums;
    private int nextPage;


    public PmsPage(long current, long size) {
        this.current = current;
        this.size = size;
    }


    public PmsPage() {

    }


}
