|
|
|
@ -2,12 +2,10 @@ package kr.xit.biz.mbl.web;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
import org.springframework.http.HttpMethod;
|
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
|
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.RequestParam;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
@ -52,12 +50,11 @@ public class MobilePageController {
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
@Operation(summary = "카카오 모바일 데이타 요청(모바일 페이지에서 호출)", description = "카카오 모바일 데이타 요청(모바일 페이지에서 호출)")
|
|
|
|
|
@PostMapping(
|
|
|
|
|
value = {"/kkopay/mblPage", "/kkotalk/mblPage"}, produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
|
public IApiResponse findKkoMyDocReadyAndMblData(@RequestBody final MobilePageDTO.KakaoValidTokenRequest reqDTO, final HttpServletRequest request) {
|
|
|
|
|
final String uri = request.getRequestURI();
|
|
|
|
|
@RequestMapping(
|
|
|
|
|
value = {"/kko/mblPage"}, method = {RequestMethod.POST, RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
|
public IApiResponse findKkoMyDocReadyAndMblData(@ModelAttribute final MobilePageDTO.KakaoValidTokenRequest reqDTO) {
|
|
|
|
|
|
|
|
|
|
if(uri.contains("/kkopay/mblPage")) {
|
|
|
|
|
if(StringUtils.isNotEmpty(reqDTO.getDocumentBinderUuid())) {
|
|
|
|
|
return service.findKkopayReadyAndMblPage(reqDTO);
|
|
|
|
|
}else{
|
|
|
|
|
return service.findKkotalkReadyAndMblPage(reqDTO);
|
|
|
|
|