feat: 카카오톡 추가 반영 - 모바일 페이지 처리

main
Jonguk. Lim 2 months ago
parent a85459c44a
commit 0babe17283

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

Loading…
Cancel
Save