package cn.axzo.msg.center.domain.model;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * 分页对象
 *
 * @author zhaoyong_sh
 * @see MyPage
 * @since 2021-05-19 18:06
 */
public class MyPage<T> extends Page<T> {

    public MyPage() {}

    public MyPage(Integer current, Integer size) {
        current = current == null || current <= 0 ? 1: current;
        size = size == null || size <= 0 ? 15 : size;
        this.current = current;
        this.size = size;
        this.isSearchCount = true;
    }
}

