package cn.axzo.msg.center.api.response;

import lombok.Getter;
import lombok.Setter;

/**
 * 分页查询类
 *
 * @author zhaoyong_sh
 * @see PageQuery
 * @since 2021-05-19 18:05
 */
@Getter
@Setter
public class PageQuery<T> {

    /**
     * 页码
     */
    private int pageNum = 1;

    /**
     * 每页大小
     */
    private int pageSize = 15;

    public MyPage<T> toPage() {
        return new MyPage<>(pageNum, pageSize);
    }

}
