public class ApiClient extends Object
| Modifier and Type | Method and Description |
|---|---|
<TP> ServiceResultVo |
get(ServiceAction action) |
<TP> ServiceResultVo |
get(ServiceAction action,
TP data) |
<TR,TP> ListResultVo<TR> |
listWithGet(ServiceAction action,
Class<TR> responseClass) |
<TR,TP> ListResultVo<TR> |
listWithGet(ServiceAction action,
TP request,
Class<TR> responseClass) |
<TR,TP> ListResultVo<TR> |
listWithPost(ServiceAction action,
Class<TR> responseClass) |
<TR,TP> ListResultVo<TR> |
listWithPost(ServiceAction action,
TP request,
Class<TR> responseClass) |
<TR> PageResultVo<TR> |
pageWithGet(ServiceAction action,
Class<TR> responseClass) |
<TR,TP> PageResultVo<TR> |
pageWithGet(ServiceAction action,
TP data,
Class<TR> responseClass) |
<TP> ServiceResultVo |
post(ServiceAction action) |
<TP> ServiceResultVo |
post(ServiceAction action,
TP data) |
<TR,TP> SingleResultVo<TR> |
singleWithGet(ServiceAction action,
Class<TR> responseClass) |
<TR,TP> SingleResultVo<TR> |
singleWithGet(ServiceAction action,
TP request,
Class<TR> responseClass) |
<TR,TP> SingleResultVo<TR> |
singleWithPost(ServiceAction action,
Class<TR> responseClass) |
<TR,TP> SingleResultVo<TR> |
singleWithPost(ServiceAction action,
TP request,
Class<TR> responseClass) |
public ApiClient(Address address)
public <TR,TP> ListResultVo<TR> listWithGet(ServiceAction action, Class<TR> responseClass) throws Exception
Exceptionpublic <TR,TP> ListResultVo<TR> listWithGet(ServiceAction action, TP request, Class<TR> responseClass) throws Exception
Exceptionpublic <TR,TP> ListResultVo<TR> listWithPost(ServiceAction action, Class<TR> responseClass) throws Exception
Exceptionpublic <TR,TP> ListResultVo<TR> listWithPost(ServiceAction action, TP request, Class<TR> responseClass) throws Exception
Exceptionpublic <TR,TP> SingleResultVo<TR> singleWithPost(ServiceAction action, Class<TR> responseClass) throws Exception
Exceptionpublic <TR,TP> SingleResultVo<TR> singleWithPost(ServiceAction action, TP request, Class<TR> responseClass) throws Exception
Exceptionpublic <TR,TP> SingleResultVo<TR> singleWithGet(ServiceAction action, Class<TR> responseClass) throws Exception
Exceptionpublic <TR,TP> SingleResultVo<TR> singleWithGet(ServiceAction action, TP request, Class<TR> responseClass) throws Exception
Exceptionpublic <TR> PageResultVo<TR> pageWithGet(ServiceAction action, Class<TR> responseClass) throws Exception
Exceptionpublic <TR,TP> PageResultVo<TR> pageWithGet(ServiceAction action, TP data, Class<TR> responseClass) throws Exception
Exceptionpublic <TP> ServiceResultVo get(ServiceAction action, TP data) throws Exception
Exceptionpublic <TP> ServiceResultVo get(ServiceAction action) throws Exception
Exceptionpublic <TP> ServiceResultVo post(ServiceAction action) throws Exception
Exceptionpublic <TP> ServiceResultVo post(ServiceAction action, TP data) throws Exception
ExceptionCopyright © 2019. All rights reserved.