贷款基础接口
parent
d26da41a2e
commit
0d200ab1a8
|
|
@ -26,7 +26,7 @@ public class LoanService {
|
|||
* @return ApplyPersonResponse
|
||||
*/
|
||||
public ApplyPersonResponse applyPerson(ApplyPersonRequest applyPersonRequest) {
|
||||
String url = "/loanapi/apply";
|
||||
String url = "/loan/v2/person-apply";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_1);
|
||||
HttpResponse<ApplyPersonResponse> httpResponse = apiClient.post(url, headers, applyPersonRequest.toJsonRequest(), ApplyPersonResponse.class);
|
||||
|
|
@ -40,7 +40,7 @@ public class LoanService {
|
|||
* @return ApplyCompanyResponse
|
||||
*/
|
||||
public ApplyCompanyResponse applyCompany(ApplyCompanyRequest applyCompanyRequest) {
|
||||
String url = "/loanapi/qyapply";
|
||||
String url = "/loan/v2/company-apply";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_1);
|
||||
HttpResponse<ApplyCompanyResponse> httpResponse = apiClient.post(url, headers, applyCompanyRequest.toJsonRequest(), ApplyCompanyResponse.class);
|
||||
|
|
@ -54,7 +54,7 @@ public class LoanService {
|
|||
* @return ApplyQueryResponse
|
||||
*/
|
||||
public ApplyQueryResponse applyQuery(ApplyQueryRequest applyQueryRequest) {
|
||||
String url = "/loanapi/applyquery";
|
||||
String url = "/loan/v2/query";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_1);
|
||||
HttpResponse<ApplyQueryResponse> httpResponse = apiClient.post(url, headers, applyQueryRequest.toJsonRequest(), ApplyQueryResponse.class);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import java.util.List;
|
|||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("102017")
|
||||
@TransType("242603")
|
||||
public class ApplyCompanyRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import java.util.List;
|
|||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("102001")
|
||||
@TransType("242503")
|
||||
public class ApplyPersonRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ public class BmdService {
|
|||
* @return ApplyBmdAddResponse
|
||||
*/
|
||||
public ApplyBmdAddResponse applyBmdAdd(ApplyBmdAddRequest applyBmdAddRequest) {
|
||||
String url = "/loanbmdapi/add";
|
||||
String url = "/loan-white-list/v2/add";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_1);
|
||||
HttpResponse<ApplyBmdAddResponse> httpResponse = apiClient.post(url, headers, applyBmdAddRequest.toJsonRequest(), ApplyBmdAddResponse.class);
|
||||
|
|
@ -82,7 +82,7 @@ public class BmdService {
|
|||
* @return ApplyBmdAddResponse
|
||||
*/
|
||||
public ApplyBmdDelResponse applyBmdDel(ApplyBmdDelRequest applyBmdDelRequest) {
|
||||
String url = "/loanbmdapi/del";
|
||||
String url = "/loan-white-list/v2/del";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_1);
|
||||
HttpResponse<ApplyBmdDelResponse> httpResponse = apiClient.post(url, headers, applyBmdDelRequest.toJsonRequest(), ApplyBmdDelResponse.class);
|
||||
|
|
@ -96,7 +96,7 @@ public class BmdService {
|
|||
* @return ApplyBmdQueryResponse
|
||||
*/
|
||||
public ApplyBmdQueryResponse applyBmdQuery(ApplyBmdQueryRequest applyBmdQueryRequest) {
|
||||
String url = "/loanbmdapi/query";
|
||||
String url = "/loan-white-list/v2/query";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_1);
|
||||
HttpResponse<ApplyBmdQueryResponse> httpResponse = apiClient.post(url, headers, applyBmdQueryRequest.toJsonRequest(), ApplyBmdQueryResponse.class);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import java.math.BigDecimal;
|
|||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("102007")
|
||||
@TransType("242305")
|
||||
public class ApplyBmdAddRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import lombok.experimental.Accessors;
|
|||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("102008")
|
||||
@TransType("242306")
|
||||
public class ApplyBmdDelRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import lombok.experimental.Accessors;
|
|||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("102009")
|
||||
@TransType("242307")
|
||||
public class ApplyBmdQueryRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
|
|
|
|||
Loading…
Reference in New Issue