feat: KT GIBIS 토큰 갱신 배치 에러 로그 생성 반영

main
Jonguk. Lim 3 months ago
parent db57a59690
commit f8e00085ba

@ -8,6 +8,7 @@ import org.springframework.transaction.annotation.Transactional;
import kr.xit.biz.ens.cmm.CmmEnsBizUtils;
import kr.xit.biz.ens.model.kt.KtCommonDTO;
import kr.xit.core.exception.BizRuntimeException;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.service.AbstractService;
import kr.xit.core.spring.util.ApiWebClientUtil;
@ -46,11 +47,15 @@ public class EnsBatchKtGbsAccessTokenUpdateService extends AbstractService imple
public void modifyAccessToken(final KtCommonDTO.KtMnsRequest dto) {
final String url = apiHost + requestToken;
apiWebClient.exchange(
ApiResponseDTO result = apiWebClient.exchange(
url,
HttpMethod.POST,
dto,
ApiResponseDTO.class,
CmmEnsBizUtils.getHeadeMap());
if(!result.isSuccess()){
throw BizRuntimeException.create(result.getCode(), result.getMessage());
}
}
}

Loading…
Cancel
Save