All Downloads are FREE. Search and download functionalities are using the official Maven repository.

love.keeping.starter.web.resp.PageResult Maven / Gradle / Ivy

The newest version!
package love.keeping.starter.web.resp;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import lombok.Data;

/**
 * 统一分页数据
 *
 * @param 
 * @author Keeping
 */
@Data
public class PageResult implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 是否有上一页
   */
  @ApiModelProperty("是否有上一页")
  private boolean hasPrev;

  /**
   * 是否有下一页
   */
  @ApiModelProperty("是否有下一页")
  private boolean hasNext;

  /**
   * 总记录数
   */
  @ApiModelProperty("总记录数")
  private long totalCount;

  /**
   * 每页数据量
   */
  @ApiModelProperty("每页条数")
  private long pageSize;

  /**
   * 第几页
   */
  @ApiModelProperty("当前页码")
  private long pageIndex;

  /**
   * 总共几页
   */
  @ApiModelProperty("总页数")
  private int totalPage;

  /**
   * 数据
   */
  @ApiModelProperty("数据")
  private List datas;

  /**
   * 附加数据
   */
  @ApiModelProperty("附加数据")
  private Map extra;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy