Skip to content

Commit 195f07f

Browse files
committed
Server:同步eclipse版至idea版
1 parent b1d955b commit 195f07f

File tree

4 files changed

+246
-322
lines changed

4 files changed

+246
-322
lines changed

APIJSON(Server)/APIJSON(Idea)/src/main/java/zuo/biao/apijson/JSONRequest.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,30 @@ public String getTag() {
8282

8383
//array object <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
8484

85+
public static final int QUERY_TABLE = 0;
86+
public static final int QUERY_TOTAL = 1;
87+
public static final int QUERY_ALL = 2;
88+
89+
public static final String KEY_QUERY = "query";
8590
public static final String KEY_COUNT = "count";
8691
public static final String KEY_PAGE = "page";
8792

93+
/**
94+
* @param query what need to query, Table,total,ALL?
95+
* @return
96+
*/
97+
public JSONRequest setQuery(int query) {
98+
put(KEY_QUERY, query);
99+
return this;
100+
}
101+
public int getQuery() {
102+
return getIntValue(KEY_QUERY);
103+
}
104+
105+
/**
106+
* @param count
107+
* @return
108+
*/
88109
public JSONRequest setCount(int count) {
89110
put(KEY_COUNT, count);
90111
return this;
@@ -93,6 +114,10 @@ public int getCount() {
93114
return getIntValue(KEY_COUNT);
94115
}
95116

117+
/**
118+
* @param page
119+
* @return
120+
*/
96121
public JSONRequest setPage(int page) {
97122
put(KEY_PAGE, page);
98123
return this;

0 commit comments

Comments
 (0)