public class YzhCustomClient extends YzhClient
| 限定符和类型 | 类和说明 |
|---|---|
static class |
YzhCustomClient.ClientMethodType |
| 构造器和说明 |
|---|
YzhCustomClient(YzhConfig yzhConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
<K,T> YzhResponse<T> |
doRequest(YzhRequest<K> req,
String url,
String method,
Class<T> clazz)
通用请求函数
|
get, getResponseType, getSocketTimeout, getYzhConfig, getYzhSign, handleError, post, setSocketTimeout, setYzhConfig, setYzhSign, signpublic YzhCustomClient(YzhConfig yzhConfig)
public <K,T> YzhResponse<T> doRequest(YzhRequest<K> req, String url, String method, Class<T> clazz) throws YzhException
K - 请求结构体T - 返回结构体req - 请求参数url - 请求地址method - 请求方式 GET/POSTclazz - 返回结构体类型YzhExceptionCopyright © 2025. All rights reserved.