com.github.aly8246.collectionutil.util.IPage 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!
package com.github.aly8246.collectionutil.util;
import com.github.aly8246.collectionutil.core.PageInterface;
import com.github.aly8246.collectionutil.main.CollectionInterceptor;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
* Mybatis plus 的IPage类,用于返回mp风格的分页
*
* @author 南有乔木
* @version v.1.0.7
* @see Page
*/
public interface IPage extends Serializable {
default String[] descs() {
return null;
}
default String[] ascs() {
return null;
}
default Map