This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
package org.redkale.source;
|
package org.redkale.source;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import org.redkale.util.Comment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 翻页对象, offset从0开始, limit必须大于0
|
* 翻页对象, offset从0开始, limit必须大于0
|
||||||
@@ -19,10 +20,13 @@ public final class Flipper implements Serializable, Cloneable {
|
|||||||
|
|
||||||
public static int DEFAULT_LIMIT = 20;
|
public static int DEFAULT_LIMIT = 20;
|
||||||
|
|
||||||
|
@Comment("一页数据的最大数量")
|
||||||
private int limit = DEFAULT_LIMIT;
|
private int limit = DEFAULT_LIMIT;
|
||||||
|
|
||||||
|
@Comment("一页的起始偏移量,从0开始")
|
||||||
private int offset = 0;
|
private int offset = 0;
|
||||||
|
|
||||||
|
@Comment("排序字段")
|
||||||
private String sort = "";
|
private String sort = "";
|
||||||
|
|
||||||
public Flipper() {
|
public Flipper() {
|
||||||
|
|||||||
Reference in New Issue
Block a user