com.github.aly8246.collectionutil.result.PageResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of collection-util Show documentation
Show all versions of collection-util Show documentation
Collection Util is a mybatis plug-in designed to solve the problem of N + 1 in mysql. When you use
Mysql to query linked tables and pages, there will be n + 1 problem. This plug-in can help you!
The newest version!
package com.github.aly8246.collectionutil.result;
import com.github.aly8246.collectionutil.main.CollectionInterceptor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
@EqualsAndHashCode(callSuper = true)
@Data
public class PageResult extends CollectionInterceptor {
/**
* 当前在第几页
*/
private int page;
/**
* 每页的大小
*/
private int pageSize;
/**
* 总共有多少数据
*/
private int total;
/**
* 总共有多少页
*/
private int totalPage;
/**
* 数据
*/
private List data;
}