Skip to content

Commit 35a0d55

Browse files
committed
readme update
1 parent 7e05701 commit 35a0d55

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ System.out.println("response = " + response);
6363
返回格式为JSON的 可以使用 HttpJsonUtil 自动返回JsonObject
6464

6565
```java
66-
JSONObject object=HttpJsonUtil.get("https://github.com/search",
66+
Map<String, Object> object=HttpJsonUtil.get("https://github.com/search",
6767
Pair.of("q","http"),
6868
Pair.of("username","agonie201218"));
6969
System.out.println("object = "+object);
@@ -91,7 +91,7 @@ System.out.println("response = " + response);
9191

9292
```java
9393

94-
# get
94+
# get
9595
Response response=HttpRequest.get("https://search.gitee.com/?skin=rec&type=repository")
9696
.queryMap("q","admin4j")
9797
.header(HttpHeaderKey.USER_AGENT,"admin4j")
@@ -237,10 +237,6 @@ public class EbayClient extends ApiJsonClient {
237237
EbayClient 封装ebay api请求 基础类
238238

239239
```java
240-
/**
241-
* ebay 库存相关api
242-
* @author andanyang
243-
*/
244240
public class EbayInventoryClient extends EbayClient {
245241

246242
/**
@@ -260,7 +256,7 @@ public class EbayInventoryClient extends EbayClient {
260256
* @return
261257
* @throws IOException
262258
*/
263-
public JSONObject inventoryItem(Integer limit, Integer offset) throws IOException {
259+
public Map<String, Object> inventoryItem(Integer limit, Integer offset) throws IOException {
264260

265261
Map<String, Object> queryMap = new HashMap(2);
266262
queryMap.put("limit", limit);
@@ -275,14 +271,15 @@ EbayInventoryClient 封装ebay 库存 api请求
275271

276272
```java
277273
EbayInventoryClient ebayInventoryClient=new EbayInventoryClient(1L);
278-
JSONObject jsonObject=ebayInventoryClient.inventoryItem(0,10);
274+
Map<String, Object> jsonObject=ebayInventoryClient.inventoryItem(0,10);
279275
```
280276

281277
```java
282-
283278
/**
284279
* 订单相关api
280+
*
285281
* @author andanyang
282+
* @since 2022/11/8 17:34
286283
*/
287284
public class EbayOrderClient extends EbayClient {
288285

@@ -305,7 +302,7 @@ public class EbayOrderClient extends EbayClient {
305302
* @param offset
306303
* @return
307304
*/
308-
public JSONObject orders(String beginTime, String endTime, int limit, int offset) {
305+
public Map<String, Object> orders(String beginTime, String endTime, int limit, int offset) {
309306

310307
final String path = "/sell/fulfillment/v1/order";
311308

0 commit comments

Comments
 (0)