refactor: 확인된 FIXME, TODO 제거

main
Jonguk. Lim 3 months ago
parent a16a9accb4
commit e7d3636ae1

@ -22,7 +22,6 @@ import kr.xit.biz.mbl.model.MobilePageDTO.MobilePageManage;
*/ */
@Mapper @Mapper
public interface IMobilePageMapper { public interface IMobilePageMapper {
// FIXME: kakao v1 or v2
MobilePageManage selectKkopayMobilePage(final MobilePageDTO.KakaoValidTokenRequest dto); MobilePageManage selectKkopayMobilePage(final MobilePageDTO.KakaoValidTokenRequest dto);
MobilePageManage selectKkotalkMobilePage(final MobilePageDTO.KakaoValidTokenRequest dto); MobilePageManage selectKkotalkMobilePage(final MobilePageDTO.KakaoValidTokenRequest dto);

@ -20,7 +20,6 @@ import kr.xit.biz.mbl.model.MobilePageDTO;
* </pre> * </pre>
*/ */
public interface IMobilePageService { public interface IMobilePageService {
// FIXME: kakao v1 or v2 - 천안 jsp에서 호출됨
String findKkopayReadyAndMblPage(MobilePageDTO.KakaoValidTokenRequest reqDTO); String findKkopayReadyAndMblPage(MobilePageDTO.KakaoValidTokenRequest reqDTO);
String findKkotalkReadyAndMblPage(MobilePageDTO.KakaoValidTokenRequest reqDTO); String findKkotalkReadyAndMblPage(MobilePageDTO.KakaoValidTokenRequest reqDTO);

@ -148,11 +148,6 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
@Override @Override
@TraceLogging @TraceLogging
public String findKtBcMblPage(final KtTokenDTO.KtTokenConfirmRequest reqDTO) { public String findKtBcMblPage(final KtTokenDTO.KtTokenConfirmRequest reqDTO) {
//TODO::테스트
//MobilePageManage mblDTO = mapper.selectKtMobilePage("DPDKT202311080000111");
//return ApiResponseDTO.success(mblDTO.getMobilePageCn());
//TODO::실운영시 코멘트 제거
if (Checks.isEmpty(reqDTO.getAccessToken())) if (Checks.isEmpty(reqDTO.getAccessToken()))
throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "KT BC 안심문자 정상 요청이 아닙니다. 재인증 후 시도하시기 바랍니다."); throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "KT BC 안심문자 정상 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
@ -197,11 +192,6 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
@Override @Override
@TraceLogging @TraceLogging
public String findKtGbsMblPage(final KtGbsDTO.TokenConfirmRequest reqDTO) { public String findKtGbsMblPage(final KtGbsDTO.TokenConfirmRequest reqDTO) {
//TODO::테스트
//MobilePageManage mblDTO = mapper.selectKtMobilePage("DPDKT202311080000111");
//return ApiResponseDTO.success(mblDTO.getMobilePageCn());
//TODO::실운영시 코멘트 제거
if (Checks.isEmpty(reqDTO.getToken())) if (Checks.isEmpty(reqDTO.getToken()))
throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "KT GIBIS 안심문자 정상 요청이 아닙니다. 재인증 후 시도하시기 바랍니다."); throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "KT GIBIS 안심문자 정상 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");

@ -139,7 +139,7 @@ public class MobilePageController {
break; break;
case "/kt/mblPage/old": case "/kt/mblPage/old":
//FIXME: KT mblpage 적용 안됨 //FIXME: KT old mblpage 적용 안됨
mblCnts = service.findKtBcMblPage( mblCnts = service.findKtBcMblPage(
KtTokenDTO.KtTokenConfirmRequest.builder() KtTokenDTO.KtTokenConfirmRequest.builder()
.signguCode("") .signguCode("")

@ -18,7 +18,6 @@ import kr.xit.biz.ens.model.ktgbs.KtGbsDTO;
* </pre> * </pre>
*/ */
public interface IKtGbsService { public interface IKtGbsService {
// FIXME : KT GIBIS 적용 안됨
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// mens 사용 API // mens 사용 API
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

@ -137,7 +137,6 @@ public class KtGbsService extends AbstractService implements IKtGbsService {
); );
} }
// FIXME : KT GIBIS 적용 안됨
@Override @Override
@TraceLogging @TraceLogging
public KtCommonDTO.KtCommonResponse mainSend(final KtGbsDTO.MsgSendRequest reqDTO) { public KtCommonDTO.KtCommonResponse mainSend(final KtGbsDTO.MsgSendRequest reqDTO) {

@ -36,9 +36,6 @@ import lombok.RequiredArgsConstructor;
public class KtGbsController { public class KtGbsController {
private final IKtGbsService service; private final IKtGbsService service;
// FIXME : KT GIBIS 적용 안됨
@Operation(summary = "본문자 수신 등록 요청", description = "본문자 수신 등록 요청") @Operation(summary = "본문자 수신 등록 요청", description = "본문자 수신 등록 요청")
@PostMapping(value = "/mainSend", produces = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/mainSend", produces = MediaType.APPLICATION_JSON_VALUE)
public IApiResponse mainSend(@RequestBody final KtGbsDTO.MsgSendRequest reqDTO) { public IApiResponse mainSend(@RequestBody final KtGbsDTO.MsgSendRequest reqDTO) {

@ -43,7 +43,6 @@ public class KtGbsInboundController {
* @return KtCommonResponse * @return KtCommonResponse
* </pre> * </pre>
*/ */
// FIXME : KT GIBIS 적용 안됨
@io.swagger.v3.oas.annotations.parameters.RequestBody(required = true, content = { @io.swagger.v3.oas.annotations.parameters.RequestBody(required = true, content = {
@Content( @Content(
mediaType = "application/json", mediaType = "application/json",

@ -422,7 +422,6 @@ public class EnsBatchAcceptService extends AbstractService implements IEnsBatchA
VNOInterop vnoInterop = new VNOInterop(); VNOInterop vnoInterop = new VNOInterop();
/* ──── DI or CI 값을 추출하기 위한 부분 Start */ /* ──── DI or CI 값을 추출하기 위한 부분 Start */
// FIXME : site code, site password 반영 필요
if(isCi) { if(isCi) {
iRtn = vnoInterop.fnRequestConnInfo(diciSiteCode, diciSitePwd, ihidnum, "JID"); iRtn = vnoInterop.fnRequestConnInfo(diciSiteCode, diciSitePwd, ihidnum, "JID");
} else { } else {

@ -73,7 +73,6 @@ public class EnsBatchExtractService extends AbstractService implements
*/ */
@Override @Override
@Transactional(propagation = Propagation.REQUIRES_NEW) @Transactional(propagation = Propagation.REQUIRES_NEW)
// FIXME: kakao v1 or v2
public void saveKkopaySendResult(final String mstId, String unitySndMstId, final List<KkopayDocBulkDTO.BulkSendResponses> resList) { public void saveKkopaySendResult(final String mstId, String unitySndMstId, final List<KkopayDocBulkDTO.BulkSendResponses> resList) {
// 결과 반영 // 결과 반영
resList.forEach(o -> resList.forEach(o ->

@ -177,10 +177,10 @@ public class EnsBatchMakeService extends AbstractService implements IEnsBatchMak
* - ( ), 1 , 2 * - ( ), 1 , 2
* KAKAO - {@link IEnsBatchMapper#insertKakaopay(Object) insertKakaopay} * KAKAO - {@link IEnsBatchMapper#insertKakaopay(Object) insertKakaopay}
* - tb_ens_kakao_my_doc * - tb_ens_kakao_my_doc
* KT_BC - {@link IEnsBatchMapper#insertKtBcMastr(Object) insertKtBcMastr} * KT_BC, KT_GIBIS - {@link IEnsBatchMapper#insertKtBcMastr(Object) insertKtBcMastr}
* - tb_ens_kt_bc_mastr FIXME:: * - tb_ens_kt_bc_mastr, tb_ens_kt_gbs
* - {@link IEnsBatchMapper#insertKtBcDetail(Object) insertKtBcDetail} * - {@link IEnsBatchMapper#insertKtBcDetail(Object)}
* - tb_ens_kt_bc_detail FIXME:: * {@link IEnsBatchMapper#insertKtGbsDetail(Object)}
* @param dto SndngMssageParam * @param dto SndngMssageParam
* @return int * @return int
* </pre> * </pre>

@ -135,7 +135,6 @@ public class EnsBatchSendService extends AbstractService implements IEnsBatchSen
*/ */
@Override @Override
@Transactional(propagation = Propagation.REQUIRES_NEW) @Transactional(propagation = Propagation.REQUIRES_NEW)
// FIXME: kakao v1 or v2
public void sendBulks(final SndngMssageParam dto) { public void sendBulks(final SndngMssageParam dto) {
dto.setProfile(ApiConstants.IS_PROFILE_LOCAL? "local" : "prod"); dto.setProfile(ApiConstants.IS_PROFILE_LOCAL? "local" : "prod");
@ -603,7 +602,6 @@ public class EnsBatchSendService extends AbstractService implements IEnsBatchSen
private void sendBulkKtGibis(final SndngMssageParam dto) { private void sendBulkKtGibis(final SndngMssageParam dto) {
final String url = apiHost + apiKtGbsBulkSend; final String url = apiHost + apiKtGbsBulkSend;
// FIXME : KT GIBIS 적용 안됨 - 대상 조회시 필요한 필드 매핑 필요(SQL)
EnsKtGbsDTO mstDTO = mapper.selectKtGbsMstTgtInfo(dto) EnsKtGbsDTO mstDTO = mapper.selectKtGbsMstTgtInfo(dto)
.orElseThrow(() -> BizRuntimeException.create("KT GBIS 본문자 수신 등록 대상이 존재 하지 않습니다 ")); .orElseThrow(() -> BizRuntimeException.create("KT GBIS 본문자 수신 등록 대상이 존재 하지 않습니다 "));

@ -77,7 +77,6 @@ public class EnsBatchStatusService extends AbstractService implements IEnsBatchS
*/ */
@Override @Override
@Transactional(propagation = Propagation.REQUIRES_NEW) @Transactional(propagation = Propagation.REQUIRES_NEW)
// FIXME: kakao v1 or v2
public void statusBulks(final EnsDTO.BatchEnsRequest reqDTO) { public void statusBulks(final EnsDTO.BatchEnsRequest reqDTO) {
final List<SndngMssageParam> tgtList = mapper.selectStatusBulkTgts(reqDTO); final List<SndngMssageParam> tgtList = mapper.selectStatusBulkTgts(reqDTO);

@ -199,8 +199,7 @@ public class KkotalkApiDTO {
* ID, 34 * ID, 34
*/ */
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "문서 고유 ID, 34자로 고정", example = " ") @Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "문서 고유 ID, 34자로 고정", example = " ")
// FIXME: 테스트후 주석 제거!!! @Size(min = 34, max = 34, message = "문서 고유 ID는 필수입니다(34자)")
//@Size(min = 34, max = 34, message = "문서 고유 ID는 필수입니다(34자)")
private String envelopeId; private String envelopeId;
/** /**
@ -411,8 +410,7 @@ public class KkotalkApiDTO {
* ID, 34 * ID, 34
*/ */
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "문서 고유 ID, 34자로 고정", example = " ") @Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "문서 고유 ID, 34자로 고정", example = " ")
// FIXME: 테스트후 주석 제거!!! @Size(min = 34, max = 34, message = "문서 고유 ID는 필수입니다(34자)")
//@Size(min = 34, max = 34, message = "문서 고유 ID는 필수입니다(34자)")
private String envelopeId; private String envelopeId;
} }

@ -1,15 +1,20 @@
package kr.xit.biz.ens.model.kt; package kr.xit.biz.ens.model.kt;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.NotEmpty;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming; import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode; import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Size;
import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO; import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO;
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse; import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@ -19,7 +24,6 @@ import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.hibernate.validator.constraints.NotEmpty;
/** /**
* <pre> * <pre>
@ -916,7 +920,6 @@ public class KtMmsSendDTO {
/** /**
* <pre> * <pre>
* TODO::
* : - 2 * : - 2
* 40 MMS/RCS * 40 MMS/RCS
* 41 MMS * 41 MMS

@ -343,7 +343,6 @@ public class KtGbsDTO {
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "발송결과코드", example = "40") @Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "발송결과코드", example = "40")
@Size(min = 2, max = 2, message = "발송결과코드는 필수 입니다") @Size(min = 2, max = 2, message = "발송결과코드는 필수 입니다")
private String mmsRsltDvcd; private String mmsRsltDvcd;
//private String mmsSndgRsltDvcd;
/** /**
* <pre> * <pre>

@ -129,7 +129,6 @@ public class ApiWebClientUtil {
*/ */
public <T> T exchangeKkotalk(final String url, final HttpMethod method, final Object body, final Class<T> rtnClzz, final CmmEnsRlaybsnmDTO ensDTO) { public <T> T exchangeKkotalk(final String url, final HttpMethod method, final Object body, final Class<T> rtnClzz, final CmmEnsRlaybsnmDTO ensDTO) {
// FIXME: Kkotalk 값 설정
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
map.put(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE); map.put(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
map.put(HttpHeaders.AUTHORIZATION, String.format("KakaoAK %s", ensDTO.getKakaoDealerRestApiKey())); map.put(HttpHeaders.AUTHORIZATION, String.format("KakaoAK %s", ensDTO.getKakaoDealerRestApiKey()));

Loading…
Cancel
Save