package com.ytpm.general;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Marx
 * @date 2022/5/13 10:29
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "分页参数")
public class PageMeta implements Serializable {


    private static final long serialVersionUID = 5981214936303453944L;
    /**
     * 总条数
     */
    @ApiModelProperty(value = "总条数")
    private Long total;
    /**
     * 当前页数量(查询量)
     */
    @ApiModelProperty(value = "当前页数量(查询量)")
    private Integer limit;
    /**
     * 当前页码
     */
    @ApiModelProperty(value = "当前页码")
    private Integer page;
    /**
     * 总页数
     */
    @ApiModelProperty(value = "总页数")
    private Integer pageSizes;
}
