Skip to content

Commit

Permalink
1.更新 PageAssist 同步使用 DevPage 默认页数信息
Browse files Browse the repository at this point in the history
Former-commit-id: 60721cd
Former-commit-id: 5e402a8
  • Loading branch information
afkT committed Feb 7, 2022
1 parent 65c6b94 commit e351cc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/DevAssist/src/main/java/dev/assist/PageAssist.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class PageAssist<T>
extends RequestState<T> {

// 全局页数配置
public static int DF_PAGE = 1;
public static int DF_PAGE = DevPage.DF_PAGE;
// 全局每页请求条数配置
public static int DF_PAGE_SIZE = 20;
public static int DF_PAGE_SIZE = DevPage.DF_PAGE_SIZE;

// Page Object
private final DevPage<T> mPage;
Expand Down
6 changes: 3 additions & 3 deletions lib/DevAssist/src/main/java/dev/base/DevPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ public DevPage<T> response(
// ===========

// 默认页数配置
private static final int DEFAULT_PAGE = 1;
public static final int DF_PAGE = 1;
// 默认每页请求条数配置
private static final int DEFAULT_PAGE_SIZE = 10;
public static final int DF_PAGE_SIZE = 10;

/**
* 获取默认配置 Page 实体类
Expand All @@ -261,7 +261,7 @@ public DevPage<T> response(
*/
public static <T> DevPage<T> getDefault() {
return new DevPage<>(
DEFAULT_PAGE, DEFAULT_PAGE_SIZE
DF_PAGE, DF_PAGE_SIZE
);
}
}

0 comments on commit e351cc7

Please sign in to comment.