T - 奇门API响应类public abstract class QimenRequest<T extends QimenResponse> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
body |
protected String |
customerId |
protected TaobaoHashMap |
queryParams |
protected String |
testType |
protected Long |
timestamp |
protected String |
version |
| Constructor and Description |
|---|
QimenRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQueryParam(String key,
String value) |
abstract String |
getApiMethodName()
获取API名称。
|
String |
getBody() |
String |
getCustomerId() |
TaobaoHashMap |
getQueryParams() |
abstract Class<T> |
getResponseClass()
获取API响应类实例。
|
String |
getTestType() |
Long |
getTimestamp() |
String |
getVersion() |
void |
setBody(String body) |
void |
setCustomerId(String customerId) |
void |
setTestType(String testType) |
void |
setTimestamp(Long timestamp) |
void |
setVersion(String version) |
protected String customerId
protected Long timestamp
protected String version
protected String testType
protected String body
protected TaobaoHashMap queryParams
public String getCustomerId()
public void setCustomerId(String customerId)
public Long getTimestamp()
public void setTimestamp(Long timestamp)
public String getVersion()
public void setVersion(String version)
public String getTestType()
public void setTestType(String testType)
public void setBody(String body)
public String getBody()
public TaobaoHashMap getQueryParams()
public abstract String getApiMethodName()
Copyright © 2021. All rights reserved.