package com.storlead.framework.mybatis.page;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @program: sp-sales
 * @description: page类
 * @author: xiaojiawei
 * @create: 2022-04-15 16:37
 **/
@Data
public class Page implements Serializable {
    private static final long serialVersionUID = 1004386013084749956L;

    @TableField(exist = false)
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty(value = "页码", example = "1")
    private Integer pageIndex = 1;

    @TableField(exist = false)
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty(value = "页面大小", example = "10")
    private Integer pageSize = 10;

}
