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

com.github.aly8246.collectionutil.result.PageResult Maven / Gradle / Ivy

Go to download

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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy