feat: kko 모바일 페이지 적용

main
kjh 3 months ago
parent b13dd3221c
commit 7195f74829

@ -24,7 +24,8 @@ import kr.xit.biz.mbl.model.MobilePageDTO.MobilePageManage;
@Mapper
public interface IMobilePageMapper {
// FIXME: kakao v1 or v2
MobilePageManage selectKkoMobilePage(final MobilePageDTO.KakaoValidTokenRequest dto);
MobilePageManage selectKkopayMobilePage(final MobilePageDTO.KakaoValidTokenRequest dto);
MobilePageManage selectKkotalkMobilePage(final MobilePageDTO.KakaoValidTokenRequest dto);
<T> MobilePageManage selectKtMobilePage(final T t);
MobilePageManage selectXitMobilePage(final CntcDTO.XitPage dto);
}

@ -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);

@ -487,6 +487,7 @@
msg_cd, /* 문서코드 */
msg_type, /* 발송 메시지 타입 */
make_dt, /* 발송 시작 일시 */
data_cnt, /* 회차전체데이터건수 */
sndn_ex_time, /* 발송 마감 시간 */
ex_time, /* 열람 마감 시간 */
m_type, /* 문서 종류 */
@ -512,6 +513,7 @@
, '01001'
, '2' /* RCS/xMS (RCS :1, xMS: 2) */
, teusm.sndng_dt_1
, teusm.sndng_co
, teusm.clos_dt
, teusm.clos_dt
, '4' /* 3: LMS 4: MMS 6: RCS*/
@ -781,7 +783,6 @@
, tekg.snd_tel_no
, tekg.m_type
, tekg.opt_type
, base64encode(tekg.mms_binary) AS mmsBinary
FROM tb_ens_sndng_mastr tesm
JOIN tb_ens_kt_gbs tekg
ON tesm.sndng_mastr_id = tekg.sndng_mastr_id

Loading…
Cancel
Save