This commit is contained in:
Redkale
2017-05-16 21:09:28 +08:00
parent 3dcc6ea28f
commit 95c0d0f5cf

View File

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