|
|
|
@ -72,6 +72,7 @@ public class KkoTalkApiService {
|
|
|
|
|
|
|
|
|
|
private static final Validator validator = Validation.buildDefaultValidatorFactory().getValidator();
|
|
|
|
|
private static final CharSequence ENVELOPE_ID = "{ENVELOPE_ID}";
|
|
|
|
|
private static final CharSequence TOKEN = "{TOKEN}";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -123,7 +124,9 @@ public class KkoTalkApiService {
|
|
|
|
|
|
|
|
|
|
return callApi(
|
|
|
|
|
HttpMethod.valueOf(API_VALID_TOKEN[1]),
|
|
|
|
|
HOST + API_VALID_TOKEN[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()),
|
|
|
|
|
HOST + API_VALID_TOKEN[0]
|
|
|
|
|
.replace(ENVELOPE_ID, reqDTO.getEnvelopeId())
|
|
|
|
|
.replace(TOKEN, reqDTO.getToken()),
|
|
|
|
|
null,
|
|
|
|
|
getHeaders(orgMng));
|
|
|
|
|
}
|
|
|
|
@ -141,11 +144,9 @@ public class KkoTalkApiService {
|
|
|
|
|
public ResponseEntity<String> modifyStatus(final OrgMng orgMng, final KkotalkDTO.EnvelopeId reqDTO){
|
|
|
|
|
validate(reqDTO.getEnvelopeId(), null);
|
|
|
|
|
|
|
|
|
|
final String url = HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId());
|
|
|
|
|
|
|
|
|
|
return callApi(
|
|
|
|
|
HttpMethod.valueOf(API_MODIFY_STATUS[1]),
|
|
|
|
|
url,
|
|
|
|
|
HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()),
|
|
|
|
|
null,
|
|
|
|
|
getHeaders(orgMng));
|
|
|
|
|
}
|
|
|
|
@ -171,14 +172,6 @@ public class KkoTalkApiService {
|
|
|
|
|
HOST + API_BULKSTATUS[0],
|
|
|
|
|
param,
|
|
|
|
|
getHeaders(orgMng));
|
|
|
|
|
|
|
|
|
|
// KkotalkDTO.BulkStatusResponse res = webClient.exchangeKkotalk(
|
|
|
|
|
// HOST + API_BULKSTATUS[0],
|
|
|
|
|
// HttpMethod.valueOf(API_BULKSTATUS[1]),
|
|
|
|
|
// param,
|
|
|
|
|
// KkotalkDTO.BulkStatusResponse.class,
|
|
|
|
|
// getRlaybsnmInfo(reqDTO));
|
|
|
|
|
// return res.getEnvelopeStatus().get(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|