public interface BaseService
| 限定符和类型 | 方法和说明 |
|---|---|
String |
get(String url,
String queryParam)
当本Service没有实现某个API的时候,可以用这个,针对所有钉钉API中的GET请求.
|
String |
post(String url,
com.google.gson.JsonObject jsonObject)
当本Service没有实现某个API的时候,可以用这个,针对所有钉钉API中的POST请求.
|
String |
post(String url,
Object obj)
当本Service没有实现某个API的时候,可以用这个,针对所有钉钉API中的POST请求.
|
String |
post(String url,
String postData)
当本Service没有实现某个API的时候,可以用这个,针对所有钉钉API中的POST请求.
|
String get(String url, String queryParam) throws DtErrorException
queryParam - 参数url - 请求接口地址DtErrorException - 异常String post(String url, String postData) throws DtErrorException
postData - 请求参数json值url - 请求接口地址DtErrorException - 异常String post(String url, Object obj) throws DtErrorException
url - 请求接口地址obj - 请求对象DtErrorException - 异常String post(String url, com.google.gson.JsonObject jsonObject) throws DtErrorException
url - 请求接口地址jsonObject - 请求对象DtErrorException - 异常Copyright © 2021. All rights reserved.