package com.cnooc.expert.common.request;

import lombok.Getter;

@Getter
public class BasePageRequest {

    private static final int DEFAULT_PAGE_NO = 1;

    private static final int DEFAULT_PAGE_SIZE = 10;

    private Integer pageNo;

    private Integer pageSize;


    public void setPageNo(Integer pageNo) {
        this.pageNo = (pageNo != null) ? pageNo : DEFAULT_PAGE_NO;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = (pageSize != null) ? pageSize : DEFAULT_PAGE_SIZE;
    }

}
