package com.xunmei.common.core.web.domain;

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

/**
 * @author : 高雄
 * @date :2022/4/28 17:07
 * @description :
 * @modyified By:
 */
@Data
public class PageDto<T> {

    private Long page = 0L;

    private Long size = 10L;

    public Page<T> getPageDto(){
        Page<T> mePage = new Page<>();
        mePage.setCurrent(this.getPage() + 1);
        mePage.setSize(this.getSize());
        return mePage;
    }
}