package com.chaozhanggui.common.system.config;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName Pager
 * @Author Administrator
 * @Date 2019/12/5 0005 9:40
 * @Version 1.0
 * @Description
 */
@Api("分页实体")
@Data
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class Pager<T> {

    @ApiModelProperty(value = "当前页码", required = true)
    private int page;

    @ApiModelProperty(value = "每页查询数据条数", required = true)
    private int pageSize = 10;

    @ApiModelProperty(value = "数据集合", required = false)
    private T data;

    @ApiModelProperty(value = "总页数", required = false)
    private int pages;

    @ApiModelProperty(value = "总条数", required = false)
    private long total;

}