|
|
|
@ -1,5 +1,8 @@
|
|
|
|
|
package kr.xit.biz.mbl.service;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import kr.xit.biz.ens.model.cntc.CntcDTO;
|
|
|
|
@ -16,6 +19,7 @@ import kr.xit.core.model.IApiResponse;
|
|
|
|
|
import kr.xit.core.service.AbstractService;
|
|
|
|
|
import kr.xit.core.spring.annotation.TraceLogging;
|
|
|
|
|
import kr.xit.core.support.utils.Checks;
|
|
|
|
|
import kr.xit.core.support.utils.JsonUtils;
|
|
|
|
|
import kr.xit.ens.kakao.v1.service.IKkopayEltrcDocService;
|
|
|
|
|
import kr.xit.ens.kakao.v2.service.IKkotalkEltrcDocService;
|
|
|
|
|
import kr.xit.ens.kt.service.IKtBcService;
|
|
|
|
@ -63,7 +67,7 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@TraceLogging
|
|
|
|
|
public String findKkopayReadyAndMblPage(MobilePageDTO.KakaoValidTokenRequest reqDTO) {
|
|
|
|
|
public Map<String, List<Map<String, Object>>> findKkopayReadyAndMblPage(MobilePageDTO.KakaoValidTokenRequest reqDTO) {
|
|
|
|
|
|
|
|
|
|
if (Checks.isEmpty(reqDTO.getToken()) || Checks.isEmpty(reqDTO.getDocumentBinderUuid()) || Checks.isEmpty(reqDTO.getExternalDocumentUuid()))
|
|
|
|
|
throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "정상적인 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
|
|
|
|
@ -83,7 +87,7 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
if(!res.isSuccess()){
|
|
|
|
|
throw BizRuntimeException.create(res.getMessage());
|
|
|
|
|
}
|
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
|
return JsonUtils.toObject(mobilePageManage.getMobilePageCn(), Map.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -103,7 +107,7 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@TraceLogging
|
|
|
|
|
public String findKkotalkReadyAndMblPage(MobilePageDTO.KakaoValidTokenRequest reqDTO) {
|
|
|
|
|
public Map<String, List<Map<String, Object>>> findKkotalkReadyAndMblPage(MobilePageDTO.KakaoValidTokenRequest reqDTO) {
|
|
|
|
|
|
|
|
|
|
if (Checks.isEmpty(reqDTO.getToken()) || Checks.isEmpty(reqDTO.getEnvelopeId()) || Checks.isEmpty(reqDTO.getExternalId()))
|
|
|
|
|
throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "정상적인 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
|
|
|
|
@ -123,7 +127,7 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
// if(!res.isSuccess()){
|
|
|
|
|
// throw BizRuntimeException.create(res.getMessage());
|
|
|
|
|
// }
|
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
|
return JsonUtils.toObject(mobilePageManage.getMobilePageCn(), Map.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|