|
|
@@ -12,7 +12,7 @@ import java.util.*;
|
|
|
public class TestSdk {
|
|
|
private DefaultClient getClient() {
|
|
|
return new DefaultClient(
|
|
|
- "http://127.0.0.1:9800/router",
|
|
|
+ "https://dbadmin.zhlc.liucheng.gov.cn/router",
|
|
|
"220228000020",
|
|
|
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCSTihNSHP5mqzMxkqxeEv150GWUcfdNy9eoD9wWhWO5re59vi8ownmfpcKOSHhqM09W+/jwC5xbqhYJN2kbCMWTyBHJ1BaoldX736aOPCmo0octyiq2N3Xx5JFnBh5asXdEO12lrOXGNqcwwq6iDuw2Na3H4u7p3QEIz6LKLcGJQIDAQAB",
|
|
|
AlgorithmType.RSA
|
|
|
@@ -178,4 +178,13 @@ public class TestSdk {
|
|
|
Response<Map<String, Object>> response = this.getClient().execute("save.complaint.info", "1.0.0", dataMap);
|
|
|
System.out.println(JSON.toJSONString(response));
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void listCategoryOccupationPage() throws ClientException {
|
|
|
+ Map<String, Object> dataMap = new HashMap<>();
|
|
|
+ dataMap.put("current", "1");
|
|
|
+ dataMap.put("pageSize", "10");
|
|
|
+ Response<Map<String, Object>> response = this.getClient().execute("list.place.category.page", "1.0.0", dataMap);
|
|
|
+ System.out.println(JSON.toJSONString(response));
|
|
|
+ }
|
|
|
}
|