public abstract class BaseService extends Object implements ApiService
| 构造器和说明 |
|---|
BaseService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkConfig(ApiClient qiApiClient)
检查配置
|
<O,T extends ResultResponse> |
request(ApiClient qiApiClient,
BaseRequest<O,T> request)
通用请求
|
<O,T extends ResultResponse> |
request(BaseRequest<O,T> request)
通用请求
|
<O,T extends ResultResponse> |
res(BaseRequest<O,T> request)
获取响应数据
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIpInfo, getIpInfo, getPoisonousChickenSoup, getPoisonousChickenSoup, getRandomWallpaper, getRandomWallpaper, getWeatherInfo, getWeatherInfo, horoscope, horoscope, randomLoveTalk, randomLoveTalkpublic void checkConfig(ApiClient qiApiClient) throws ApiException
qiApiClient - qi api客户端ApiException - 业务异常public <O,T extends ResultResponse> T res(BaseRequest<O,T> request) throws ApiException
request - 请求对像TApiException - 业务异常public <O,T extends ResultResponse> T request(BaseRequest<O,T> request) throws ApiException
ApiServicerequest 在接口中 ApiServicerequest - 要求HttpResponseApiException - 业务异常public <O,T extends ResultResponse> T request(ApiClient qiApiClient, BaseRequest<O,T> request) throws ApiException
ApiServicerequest 在接口中 ApiServiceqiApiClient - api客户端request - 要求TApiException - 业务异常Copyright © 2024. All rights reserved.