package com.jsowell.common.core.page;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PageResponse implements Serializable {
	private static final long serialVersionUID = -8561048121257788971L;

	/**
	 * 页码
	 */
	private int pageNum;

	/**
	 * 每页数量
	 */
	private int pageSize;

	/**
	 * 数据集合
	 */
	private List<?> list;

	/**
	 * 结果总数
	 */
	private long total;

	/**
	 * 结果总页数
	 */
	private int pages;
}
