Skip to content

Commit

Permalink
Server:同步eclipse版至idea版
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Apr 29, 2017
1 parent b1d955b commit 195f07f
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 322 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,30 @@ public String getTag() {

//array object <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

public static final int QUERY_TABLE = 0;
public static final int QUERY_TOTAL = 1;
public static final int QUERY_ALL = 2;

public static final String KEY_QUERY = "query";
public static final String KEY_COUNT = "count";
public static final String KEY_PAGE = "page";

/**
* @param query what need to query, Table,total,ALL?
* @return
*/
public JSONRequest setQuery(int query) {
put(KEY_QUERY, query);
return this;
}
public int getQuery() {
return getIntValue(KEY_QUERY);
}

/**
* @param count
* @return
*/
public JSONRequest setCount(int count) {
put(KEY_COUNT, count);
return this;
Expand All @@ -93,6 +114,10 @@ public int getCount() {
return getIntValue(KEY_COUNT);
}

/**
* @param page
* @return
*/
public JSONRequest setPage(int page) {
put(KEY_PAGE, page);
return this;
Expand Down
Loading

0 comments on commit 195f07f

Please sign in to comment.