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

cn.cliveyuan.robin.base.common.PageQueryRequest Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
/*
 * Copyright (c) 2020  Clive Yuan ([email protected]).
 */

package cn.cliveyuan.robin.base.common;

/**
 * 分页查询
 *
 * @author Clive Yuan
 * @date 2020/12/07
 */
public class PageQueryRequest {

    /**
     * 页码 (最小为1)
     */
    private Integer pageNo;

    /**
     * 每页条数 (最小为1)
     */
    private Integer pageSize;

    /**
     * 实体
     */
    private T entity;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public T getEntity() {
        return entity;
    }

    public void setEntity(T entity) {
        this.entity = entity;
    }

    @Override
    public String toString() {
        return "PageQueryRequest{" +
                "pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", entity=" + entity +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy