|
|
@ -3,9 +3,14 @@ package kr.xit.biz.mbl.web;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
import org.springframework.http.HttpMethod;
|
|
|
|
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
@ -15,6 +20,7 @@ import kr.xit.biz.ens.model.cntc.CntcDTO;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtTokenDTO;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtTokenDTO;
|
|
|
|
import kr.xit.biz.mbl.model.MobilePageDTO;
|
|
|
|
import kr.xit.biz.mbl.model.MobilePageDTO;
|
|
|
|
import kr.xit.biz.mbl.service.IMobilePageService;
|
|
|
|
import kr.xit.biz.mbl.service.IMobilePageService;
|
|
|
|
|
|
|
|
import kr.xit.core.exception.BizRuntimeException;
|
|
|
|
import kr.xit.core.model.IApiResponse;
|
|
|
|
import kr.xit.core.model.IApiResponse;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
|
|
|
|
|
|
@ -54,6 +60,11 @@ public class MobilePageController {
|
|
|
|
value = {"/kko/mblPage"}, method = {RequestMethod.POST, RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
value = {"/kko/mblPage"}, method = {RequestMethod.POST, RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public IApiResponse findKkoMyDocReadyAndMblData(@ModelAttribute final MobilePageDTO.KakaoValidTokenRequest reqDTO) {
|
|
|
|
public IApiResponse findKkoMyDocReadyAndMblData(@ModelAttribute final MobilePageDTO.KakaoValidTokenRequest reqDTO) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if((StringUtils.isEmpty(reqDTO.getDocumentBinderUuid()) && StringUtils.isEmpty(reqDTO.getEnvelopeId()))
|
|
|
|
|
|
|
|
|| StringUtils.isEmpty(reqDTO.getToken())) {
|
|
|
|
|
|
|
|
throw BizRuntimeException.create("정상적인 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotEmpty(reqDTO.getDocumentBinderUuid())) {
|
|
|
|
if(StringUtils.isNotEmpty(reqDTO.getDocumentBinderUuid())) {
|
|
|
|
return service.findKkopayReadyAndMblPage(reqDTO);
|
|
|
|
return service.findKkopayReadyAndMblPage(reqDTO);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|