All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.mklaus.framework.bean.PageVO Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package cn.mklaus.framework.bean;

import lombok.Data;
import lombok.ToString;
import org.nutz.dao.pager.Pager;

/**
 * PageVO
 *
 * @author Klaus
 * Created on 2018/7/7
 */
@Data
@ToString
public class PageVO {

    private String key;

    private Integer pageNumber;

    private Integer pageSize;

    public PageVO() {
        this.pageNumber = 1;
        this.pageSize = 10;
        this.key = "";
    }

    public PageVO(int pageNumber, int pageSize) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
        this.key = "";
    }

    public Pager toPager() {
        return new Pager(pageNumber, pageSize);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy