fix: API 결과 return interface type 으로 변경

ApiResponseDTO -> IApiResponse
dev
gitea-관리자 1 year ago
parent 350b5b559b
commit 7d2d3e3fe1

@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.cmm.service.ICmmEnsFileService;
import kr.xit.biz.ens.model.cmm.CmmEnsFileInfDTO.FmcExcelUpload;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
@ -44,7 +45,7 @@ public class CmmEnsFileController {
*/
@Operation(summary = "시설관리공단 전자고지 대상 엑셀업로드 처리", description = "시설관리공단 전자고지 대상 엑셀업로드 처리<br><a href='http://localhost:8082/fmcExcelUpload.html'>전자고지연계파일처리</a>")
@PostMapping(value = "/fmcExcelUpload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> fmcExcelUpload(@ModelAttribute FmcExcelUpload fileReq) {
public IApiResponse fmcExcelUpload(@ModelAttribute FmcExcelUpload fileReq) {
String msg = service.fmcExcelUpload(fileReq);
return ApiResponseDTO.success(fileReq, msg);
}

@ -1,7 +1,7 @@
package kr.xit.biz.kakao.service;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.OneTimeToken;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
/**
* <pre>
@ -20,5 +20,5 @@ import kr.xit.core.model.ApiResponseDTO;
*/
public interface IKkoMyDocService {
ApiResponseDTO<?> findKkoMyDocReadyAndMblPage(OneTimeToken reqDTO);
IApiResponse findKkoMyDocReadyAndMblPage(OneTimeToken reqDTO);
}

@ -7,6 +7,7 @@ import kr.xit.biz.kakao.model.KkoMyDocDTO.MobilePageManage;
import kr.xit.core.consts.ErrorCode;
import kr.xit.core.exception.BizRuntimeException;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import kr.xit.core.support.utils.Checks;
import kr.xit.ens.kakao.service.IKkopayEltrcDocService;
import lombok.RequiredArgsConstructor;
@ -50,7 +51,7 @@ public class KkoMyDocService extends EgovAbstractServiceImpl implements IKkoMyDo
* </pre>
*/
@Override
public ApiResponseDTO<?> findKkoMyDocReadyAndMblPage(OneTimeToken reqDTO) {
public IApiResponse findKkoMyDocReadyAndMblPage(OneTimeToken reqDTO) {
if (Checks.isEmpty(reqDTO.getToken()) || Checks.isEmpty(reqDTO.getDocument_binder_uuid()) || Checks.isEmpty(reqDTO.getExternal_document_uuid()))
throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "정상적인 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");

@ -4,7 +4,7 @@ import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.OneTimeToken;
import kr.xit.biz.kakao.service.IKkoMyDocService;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
@ -37,7 +37,7 @@ public class KkoMyDocController {
@Operation(summary = "모바일 데이타 요청(모바일 페이지에서 호출)", description = "모바일 데이타 요청(모바일 페이지에서 호출)")
@PostMapping(value = "/mblData", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> findKkoMyDocReadyAndMblData(
public IApiResponse findKkoMyDocReadyAndMblData(
@RequestBody final OneTimeToken reqDTO
) {
return service.findKkoMyDocReadyAndMblPage(reqDTO);

@ -118,7 +118,7 @@ public class BizKtMmsController {
@Operation(summary = "토큰인증확인 조회", description = "토큰인증확인조회요청(BC-AG-SN-008)")
@RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}, value = "/cfmToken", produces = MediaType.APPLICATION_JSON_VALUE)
public IApiResponse cfmToken(@RequestBody final KtTokenConfirmRequest reqDTO) {
//public ApiResponseDTO<?> cfmToken(@RequestBody final Map<String,Object> reqDTO) {
//public IApiResponse cfmToken(@RequestBody final Map<String,Object> reqDTO) {
KtCommonResponse dto = service.cfmToken(reqDTO);
return ApiResponseDTO.success(dto);
}
@ -159,63 +159,63 @@ public class BizKtMmsController {
// })*/
// @Operation(summary = "사전 문자 수신 등록 요청", description = "사전 문자 수신 등록 요청(BC-AG-SN-001)")
// @PostMapping(value = "/beforeSend", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> beforeSend(@RequestBody final KtBefSendRequest reqDTO) {
// public IApiResponse beforeSend(@RequestBody final KtBefSendRequest reqDTO) {
// KtCommonResponse dto = service.beforeSend(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "본문자 수신 등록 요청", description = "본문자 수신 등록 요청(BC-AG-SN-002)")
// @PostMapping(value = "/mainSend", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> mainSend(@RequestBody final KtMainSendRequest reqDTO) {
// public IApiResponse mainSend(@RequestBody final KtMainSendRequest reqDTO) {
// KtCommonResponse dto = service.mainSend(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "수신 거부 등록 요청", description = "수신 거부 등록 요청(BC-AG-SN-007)")
// @PostMapping(value = "/blacklist", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> blacklist(@RequestBody final KtBlacklistRequest reqDTO) {
// public IApiResponse blacklist(@RequestBody final KtBlacklistRequest reqDTO) {
// KtCommonResponse dto = service.blacklist(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "토큰인증확인 조회", description = "토큰인증확인조회요청(BC-AG-SN-008)")
// @PostMapping(value = "/cfmToken", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> cfmToken(@RequestBody final KtTokenConfirmRequest reqDTO) {
// public IApiResponse cfmToken(@RequestBody final KtTokenConfirmRequest reqDTO) {
// KtCommonResponse dto = service.cfmToken(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "토큰열람확인결과 전송", description = "토큰열람확인결과 전송(BC-AG-SN-009)")
// @PostMapping(value = "/readToken", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> readToken(@RequestBody final KtTokenReadRequest reqDTO) {
// public IApiResponse readToken(@RequestBody final KtTokenReadRequest reqDTO) {
// KtCommonResponse dto = service.readToken(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "사전/본 문자 발송/수신 결과 전송 요청", description = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010)")
// @PostMapping(value = "/messageResult", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> messageResult(@RequestBody final KtMsgRsltRequest reqDTO) {
// public IApiResponse messageResult(@RequestBody final KtMsgRsltRequest reqDTO) {
// KtCommonResponse dto = service.messageResult(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "백오피스 발송 통계 연계 조회 요청", description = "백오피스 발송 통계 연계 조회 요청(BC-AG-SN-011)")
// @PostMapping(value = "/sendSttc", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> sendSttc(@RequestBody final KtSendSttcRequest reqDTO) {
// public IApiResponse sendSttc(@RequestBody final KtSendSttcRequest reqDTO) {
// KtMmsDTO.KtSendSttcResponse dto = service.sendSttc(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "백오피스 발송 결과 연계 조회 요청", description = "백오피스 발송 결과 연계 조회 요청(BC-AG-SN-012)")
// @PostMapping(value = "/sendSttcDtl", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> sendSttcDtl(@RequestBody final KtSendSttcDtlRequest reqDTO) {
// public IApiResponse sendSttcDtl(@RequestBody final KtSendSttcDtlRequest reqDTO) {
// KtMmsDTO.KtSendSttcDtlResponse dto = service.sendSttcDtl(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "whitelist 등록 요청", description = "whitelist 등록 요청(BC-AG-SN-013)")
// @PostMapping(value = "/whitelist", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> whitelist(@RequestBody final KtWhitelistRequest reqDTO) {
// public IApiResponse whitelist(@RequestBody final KtWhitelistRequest reqDTO) {
// KtCommonResponse dto = service.whitelist(reqDTO);
// return ApiResponseDTO.success(dto);
// }
@ -236,35 +236,35 @@ public class BizKtMmsController {
//
// @Operation(summary = "유통증명서발급처리 요청", description = "유통증명서발급처리 요청(BC-AG-SM-001)")
// @PostMapping(value = "/cerfAcmd", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> cerfAcmd(@RequestBody final KtAcmdCerfRequest reqDTO) {
// public IApiResponse cerfAcmd(@RequestBody final KtAcmdCerfRequest reqDTO) {
// KtAcmdCerfResponse dto = service.cerfAcmd(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "가상정산화면 연계토큰 인증 요청", description = "가상정산화면 연계토큰 인증 요청(BC-AG-SM-002)")
// @PostMapping(value = "/excaAcmd", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> excaAcmd(@RequestBody final KtTokenExcaRequest reqDTO) {
// public IApiResponse excaAcmd(@RequestBody final KtTokenExcaRequest reqDTO) {
// KtCommonResponse dto = service.excaAcmd(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "정산연계자료조회", description = "정산연계자료조회(BC-AG-EC-001)")
// @PostMapping(value = "/exca", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> exca(@RequestBody final KtExcaRequest reqDTO) {
// public IApiResponse exca(@RequestBody final KtExcaRequest reqDTO) {
// KtExcaResponse dto = service.exca(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "전자문서 유통정보 수치 조회", description = "전자문서 유통정보 수치 조회(BC-AG-HS-001)")
// @PostMapping(value = "/infoAcmd", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> infoAcmd(@RequestBody final KtAcmdInfoRequest reqDTO) {
// public IApiResponse infoAcmd(@RequestBody final KtAcmdInfoRequest reqDTO) {
// KtAcmdInfoResponse dto = service.infoAcmd(reqDTO);
// return ApiResponseDTO.success(dto);
// }
//
// @Operation(summary = "전자문서 유통정보 수치확인서 발급 처리", description = "전자문서 유통정보 수치확인서 발급 처리(BC-AG-HS-002)")
// @PostMapping(value = "/cfmAcmd", produces = MediaType.APPLICATION_JSON_VALUE)
// public ApiResponseDTO<?> cfmAcmd(@RequestBody final KtAcmdInfoCfmRequest reqDTO) {
// public IApiResponse cfmAcmd(@RequestBody final KtAcmdInfoCfmRequest reqDTO) {
// KtAcmdInfoCfmResponse dto = service.cfmAcmd(reqDTO);
// return ApiResponseDTO.success(dto);
// }

@ -10,6 +10,7 @@ import kr.xit.biz.ens.model.nice.NiceCiDTO.ResponseDataHeader;
import kr.xit.biz.ens.model.nice.NiceCiDTO.TokenRevokeResponse;
import kr.xit.biz.nice.service.IBizNiceCiService;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
@ -70,7 +71,7 @@ public class BizNiceCiController {
})
@Operation(summary = "기관용 토큰 발급 요청", description = "기관용 토큰 발급 요청")
@PostMapping(value = "/generateToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> generateToken(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse generateToken(@RequestBody final NiceCiRequest reqDTO) {
final NiceTokenResponse tokenResponse = service.generateToken(reqDTO);
return niceTokenResponse(tokenResponse.getDataHeader(), tokenResponse.getDataBody());
}
@ -89,7 +90,7 @@ public class BizNiceCiController {
})
@Operation(summary = "기관용 토큰 폐기", description = "기관용 토큰 폐기")
@PostMapping(value = "/revokeToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> revokeToken(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse revokeToken(@RequestBody final NiceCiRequest reqDTO) {
final TokenRevokeResponse tokenRevokeResponse = service.revokeToken(reqDTO);
return niceTokenResponse(tokenRevokeResponse.getDataHeader(), tokenRevokeResponse.getDataBody());
}
@ -117,7 +118,7 @@ public class BizNiceCiController {
})
@Operation(summary = "공개키 요청", description = "공개키 요청")
@PostMapping(value = "/requestPublickey", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestPublickey(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse requestPublickey(@RequestBody final NiceCiRequest reqDTO) {
return ApiResponseDTO.success(service.requestPublickey(reqDTO));
}
//--------------------------------------------------------------------------------
@ -139,7 +140,7 @@ public class BizNiceCiController {
})
@Operation(summary = "대칭키(symmetrickey) 등록 요청", description = "대칭키(symmetrickey) 등록 요청")
@PostMapping(value = "/requestRegSymmetrickey", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestRegSymmetrickey(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse requestRegSymmetrickey(@RequestBody final NiceCiRequest reqDTO) {
return ApiResponseDTO.success(service.requestRegSymmetrickey(reqDTO));
}
//--------------------------------------------------------------------------------
@ -161,7 +162,7 @@ public class BizNiceCiController {
})
@Operation(summary = "아이핀 CI 요청", description = "아이핀 CI 요청")
@PostMapping(value = "/requestCi", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestCi(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse requestCi(@RequestBody final NiceCiRequest reqDTO) {
return ApiResponseDTO.success(service.requestCi(reqDTO));
}
//--------------------------------------------------------------------------------

@ -1,10 +1,20 @@
package kr.xit.core.biz.web;
import egovframework.com.cmm.EgovMessageSource;
import egovframework.com.cmm.LoginVO;
import egovframework.com.cmm.jwt.config.EgovJwtTokenUtil;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.ExampleObject;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import kr.xit.core.biz.service.IAuthApiService;
import kr.xit.core.consts.Constants;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
@ -15,18 +25,6 @@ import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import egovframework.com.cmm.EgovMessageSource;
import egovframework.com.cmm.LoginVO;
import egovframework.com.cmm.jwt.config.EgovJwtTokenUtil;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.ExampleObject;
import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.biz.service.IAuthApiService;
import kr.xit.core.consts.Constants;
import lombok.RequiredArgsConstructor;
/**
* <pre>
* description :
@ -86,7 +84,7 @@ public class AuthApiController {
)
@Operation(summary = "로그인" , description = "로그인")
@PostMapping(value = "/login", consumes = {MediaType.APPLICATION_JSON_VALUE , MediaType.TEXT_HTML_VALUE})
public ApiResponseDTO<?> login(@RequestBody final LoginVO loginVO, HttpServletRequest request) {
public IApiResponse login(@RequestBody final LoginVO loginVO, HttpServletRequest request) {
// 1. 일반 로그인 처리
LoginVO loginResultVO = loginService.actionLogin(loginVO);
@ -129,7 +127,7 @@ public class AuthApiController {
)
@Operation(summary = "로그인(JWT)" , description = "로그인(JWT)")
@PostMapping(value = "/loginJwt")
public ApiResponseDTO<?> loginJWT(@RequestBody final LoginVO loginVO, HttpServletRequest request) {
public IApiResponse loginJWT(@RequestBody final LoginVO loginVO, HttpServletRequest request) {
HashMap<String, Object> resultMap = new HashMap<String, Object>();
// 1. 일반 로그인 처리
@ -189,7 +187,7 @@ public class AuthApiController {
*/
@Operation(summary = "logout" , description = "로그아웃")
@GetMapping(value = "/logout")
public ApiResponseDTO<?> actionLogoutJSON(HttpServletRequest request) {
public IApiResponse actionLogoutJSON(HttpServletRequest request) {
RequestContextHolder.currentRequestAttributes().removeAttribute(Constants.AuthSaveSession.LOGIN_VO.getCode(), RequestAttributes.SCOPE_SESSION);
return ApiResponseDTO.empty();

@ -2,7 +2,7 @@ package kr.xit.core.biz.web;
import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.ens.model.cmm.CmmEnsFileInfDTO.FmcExcelUpload;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.ModelAttribute;
@ -31,7 +31,7 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping(value = "/api/cmm")
public class CmmFileMgtController {
@PostMapping(value = "/fileUpload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> saveFiles(@ModelAttribute FmcExcelUpload fileReq) {
public IApiResponse saveFiles(@ModelAttribute FmcExcelUpload fileReq) {
//cmmFileMst, fileReq.getFiles()));
log.debug("{}", fileReq);
log.debug("{}", fileReq.getFiles()[0].getOriginalFilename());

@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.ens.model.epost.EPostDTO.EpostTraceRequest;
import kr.xit.biz.ens.model.epost.EPostDTO.EpostTraceResponse;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import kr.xit.ens.epost.service.IEpostService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
@ -37,7 +38,7 @@ public class EpostController {
@Operation(summary = "우편물 종적추적", description = "우편물 종적 추적")
@PostMapping(value = "/postTrackInfo", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> postTrackInfo(@RequestBody final EpostTraceRequest paramDTO) {
public IApiResponse postTrackInfo(@RequestBody final EpostTraceRequest paramDTO) {
EpostTraceResponse resDTO = service.postTrackInfo(paramDTO);
return ApiResponseDTO.success(resDTO);
}

@ -10,6 +10,7 @@ import kr.xit.biz.ens.model.kakao.KkopayDocBulkDTO.BulkStatusRequests;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.SendRequest;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.ValidTokenRequest;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import kr.xit.ens.kakao.service.IAsyncKkopayEltrcDocService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@ -83,7 +84,7 @@ public class AsyncKkopayEltrcDocController {
})
@Operation(hidden = true, summary = "문서발송 요청", description = "카카오페이 전자문서 서버로 문서발송 처리를 요청")
@PostMapping(value = "/documents", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestSend(
public IApiResponse requestSend(
@RequestBody final SendRequest reqDTO
) {
return ApiResponseDTO.of(service.requestSend(reqDTO));
@ -99,7 +100,7 @@ public class AsyncKkopayEltrcDocController {
*/
@Operation(hidden = true, summary = "토큰 유효성 검증", description = "Redirect URL 접속 허용/불허")
@PostMapping(value = "/validToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> validToken(
public IApiResponse validToken(
@RequestBody final ValidTokenRequest reqDTO
) {
return ApiResponseDTO.of(service.validToken(reqDTO));
@ -118,7 +119,7 @@ public class AsyncKkopayEltrcDocController {
*/
@Operation(hidden = true, summary = "문서 상태 변경", description = "문서 상태 변경")
@PostMapping(value = "/modifyStatus", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> modifyStatus(
public IApiResponse modifyStatus(
@RequestBody final DocumentBinderUuid reqDTO
) {
return ApiResponseDTO.of(service.modifyStatus(reqDTO));
@ -138,7 +139,7 @@ public class AsyncKkopayEltrcDocController {
*/
@Operation(hidden = true, summary = "문서 상태 조회", description = "문서 상태 조회")
@PostMapping(value = "/findStatus", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> findStatus(
public IApiResponse findStatus(
@RequestBody final DocumentBinderUuid reqDTO
) {
return ApiResponseDTO.of(service.findStatus(reqDTO));
@ -147,7 +148,7 @@ public class AsyncKkopayEltrcDocController {
@Operation(hidden = true, summary = "대량 문서발송 요청", description = "카카오페이 전자문서 서버로 대량 문서발송 처리를 요청")
@PostMapping(value = "/documents/bulk", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestSendBulk(
public IApiResponse requestSendBulk(
@RequestBody final BulkSendRequests reqDTO
) {
return ApiResponseDTO.of(service.requestSendBulk(reqDTO));
@ -170,7 +171,7 @@ public class AsyncKkopayEltrcDocController {
})
@Operation(hidden = true, summary = "대량 문서 상태 조회 요청", description = "카카오페이 전자문서 서버로 대량 문서 상태 조회 요청")
@PostMapping(value = "/documents/bulk/status", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> findBulkStatus(
public IApiResponse findBulkStatus(
@RequestBody final BulkStatusRequests reqDTO
) {
return ApiResponseDTO.of(service.findBulkStatus(reqDTO));

@ -10,6 +10,7 @@ import kr.xit.biz.ens.model.kakao.KkopayDocBulkDTO.BulkStatusRequests;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.SendRequest;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.ValidTokenRequest;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import kr.xit.ens.kakao.service.IKkopayEltrcDocService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@ -82,7 +83,7 @@ public class KkopayEltrcDocController {
})
})
@PostMapping(value = "/documents", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestSend(
public IApiResponse requestSend(
@RequestBody final SendRequest reqDTO
) {
return ApiResponseDTO.success(service.requestSend(reqDTO));
@ -97,7 +98,7 @@ public class KkopayEltrcDocController {
*/
@Operation(summary = "토큰 유효성 검증", description = "Redirect URL 접속 허용/불허")
@PostMapping(value = "/validToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> validToken(
public IApiResponse validToken(
@RequestBody final ValidTokenRequest reqDTO
) {
return ApiResponseDTO.success(service.validToken(reqDTO));
@ -116,7 +117,7 @@ public class KkopayEltrcDocController {
*/
@Operation(summary = "문서 상태 변경", description = "문서 상태 변경")
@PostMapping(value = "/modifyStatus", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> modifyStatus(
public IApiResponse modifyStatus(
@RequestBody final DocumentBinderUuid reqDTO
) {
service.modifyStatus(reqDTO);
@ -137,7 +138,7 @@ public class KkopayEltrcDocController {
*/
@Operation(summary = "문서 상태 조회", description = "문서 상태 조회")
@PostMapping(value = "/findStatus", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> findStatus(
public IApiResponse findStatus(
@RequestBody final DocumentBinderUuid reqDTO
) {
return ApiResponseDTO.success(service.findStatus(reqDTO));
@ -153,7 +154,7 @@ public class KkopayEltrcDocController {
*/
@Operation(summary = "대량 문서발송 요청", description = "카카오페이 전자문서 서버로 대량 문서발송 처리를 요청")
@PostMapping(value = "/documents/bulk", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestSendBulk(
public IApiResponse requestSendBulk(
@RequestBody final BulkSendRequests reqDTO
) {
return ApiResponseDTO.success(service.requestSendBulk(reqDTO));
@ -169,7 +170,7 @@ public class KkopayEltrcDocController {
*/
@Operation(summary = "대량 문서 상태 조회 요청", description = "카카오페이 전자문서 서버로 대량 문서 상태 조회 요청")
@PostMapping(value = "/documents/bulk/status", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> findBulkStatus(
public IApiResponse findBulkStatus(
@RequestBody final BulkStatusRequests reqDTO
) {
return ApiResponseDTO.success(service.findBulkStatus(reqDTO));

@ -26,6 +26,7 @@ import kr.xit.biz.ens.model.kt.KtTokenDTO.KtTokenConfirmRequest;
import kr.xit.biz.ens.model.kt.KtTokenDTO.KtTokenExcaRequest;
import kr.xit.biz.ens.model.kt.KtTokenDTO.KtTokenReadRequest;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import kr.xit.ens.kt.service.IKtMmsService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
@ -62,34 +63,34 @@ public class KtMmsController {
//------------------------------------------------------------------------------
@Operation(deprecated = true, summary = "기관용 토큰 발급 요청 -> 업무(Biz)단 API 사용", description = "KT 문서 중개자 정보 DB update가 필요하여 업무단의 API를 사용하여야 함")
@PostMapping(value = "/requestToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestToken(@RequestBody final KtMnsRequest paramDTO) {
public IApiResponse requestToken(@RequestBody final KtMnsRequest paramDTO) {
return ApiResponseDTO.success(service.requestToken(paramDTO));
}
@Operation(summary = "본문자 수신 등록 요청(BC-AG-SN-002) -> 업무(Biz)단 API 사용", description = "본문자 수신 등록 요청(BC-AG-SN-002) -> bulk처리를 위해 업무단의 API를 사용하여야 함")
@PostMapping(value = "/mainSend", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> mainSend(@RequestBody final KtMainSendRequest reqDTO) {
public IApiResponse mainSend(@RequestBody final KtMainSendRequest reqDTO) {
KtCommonResponse dto = service.mainSend(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(summary = "토큰인증확인 조회(BC-AG-SN-008)", description = "토큰인증확인조회요청(BC-AG-SN-008)")
@PostMapping(value = "/cfmToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> cfmToken(@RequestBody final KtTokenConfirmRequest reqDTO) {
public IApiResponse cfmToken(@RequestBody final KtTokenConfirmRequest reqDTO) {
KtCommonResponse dto = service.cfmToken(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(summary = "토큰열람확인결과 전송(BC-AG-SN-009)", description = "토큰열람확인결과 전송(BC-AG-SN-009)")
@PostMapping(value = "/readToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> readToken(@RequestBody final KtTokenReadRequest reqDTO) {
public IApiResponse readToken(@RequestBody final KtTokenReadRequest reqDTO) {
KtCommonResponse dto = service.readToken(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(summary = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010) -> 업무(Biz)단 API 사용", description = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010) -> bulk처리를 위해 업무단의 API를 사용하여야 함")
@PostMapping(value = "/messageResult", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> messageResult(@RequestBody final KtMsgRsltRequest reqDTO) {
public IApiResponse messageResult(@RequestBody final KtMsgRsltRequest reqDTO) {
KtCommonResponse dto = service.messageResult(reqDTO);
return ApiResponseDTO.success(dto);
}
@ -108,35 +109,35 @@ public class KtMmsController {
@Operation(hidden = true, summary = "사전 문자 수신 등록 요청", description = "사전 문자 수신 등록 요청(BC-AG-SN-001)")
@PostMapping(value = "/beforeSend", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> beforeSend(@RequestBody final KtBefSendRequest reqDTO) {
public IApiResponse beforeSend(@RequestBody final KtBefSendRequest reqDTO) {
KtCommonResponse dto = service.beforeSend(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(hidden = true, summary = "수신 거부 등록 요청", description = "수신 거부 등록 요청(BC-AG-SN-007)")
@PostMapping(value = "/blacklist", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> blacklist(@RequestBody final KtBlacklistRequest reqDTO) {
public IApiResponse blacklist(@RequestBody final KtBlacklistRequest reqDTO) {
KtCommonResponse dto = service.blacklist(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(hidden = true, summary = "백오피스 발송 통계 연계 조회 요청", description = "백오피스 발송 통계 연계 조회 요청(BC-AG-SN-011)")
@PostMapping(value = "/sendSttc", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> sendSttc(@RequestBody final KtSendSttcRequest reqDTO) {
public IApiResponse sendSttc(@RequestBody final KtSendSttcRequest reqDTO) {
KtMmsDTO.KtSendSttcResponse dto = service.sendSttc(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(hidden = true, summary = "백오피스 발송 결과 연계 조회 요청", description = "백오피스 발송 결과 연계 조회 요청(BC-AG-SN-012)")
@PostMapping(value = "/sendSttcDtl", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> sendSttcDtl(@RequestBody final KtSendSttcDtlRequest reqDTO) {
public IApiResponse sendSttcDtl(@RequestBody final KtSendSttcDtlRequest reqDTO) {
KtMmsDTO.KtSendSttcDtlResponse dto = service.sendSttcDtl(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(hidden = true, summary = "whitelist 등록 요청", description = "whitelist 등록 요청(BC-AG-SN-013)")
@PostMapping(value = "/whitelist", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> whitelist(@RequestBody final KtWhitelistRequest reqDTO) {
public IApiResponse whitelist(@RequestBody final KtWhitelistRequest reqDTO) {
KtCommonResponse dto = service.whitelist(reqDTO);
return ApiResponseDTO.success(dto);
}
@ -157,35 +158,35 @@ public class KtMmsController {
@Operation(hidden = true, summary = "유통증명서발급처리 요청", description = "유통증명서발급처리 요청(BC-AG-SM-001)")
@PostMapping(value = "/cerfAcmd", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> cerfAcmd(@RequestBody final KtAcmdCerfRequest reqDTO) {
public IApiResponse cerfAcmd(@RequestBody final KtAcmdCerfRequest reqDTO) {
KtAcmdCerfResponse dto = service.cerfAcmd(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(hidden = true, summary = "가상정산화면 연계토큰 인증 요청", description = "가상정산화면 연계토큰 인증 요청(BC-AG-SM-002)")
@PostMapping(value = "/excaAcmd", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> excaAcmd(@RequestBody final KtTokenExcaRequest reqDTO) {
public IApiResponse excaAcmd(@RequestBody final KtTokenExcaRequest reqDTO) {
KtCommonResponse dto = service.excaAcmd(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(hidden = true, summary = "정산연계자료조회", description = "정산연계자료조회(BC-AG-EC-001)")
@PostMapping(value = "/exca", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> exca(@RequestBody final KtExcaRequest reqDTO) {
public IApiResponse exca(@RequestBody final KtExcaRequest reqDTO) {
KtExcaResponse dto = service.exca(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(hidden = true, summary = "전자문서 유통정보 수치 조회", description = "전자문서 유통정보 수치 조회(BC-AG-HS-001)")
@PostMapping(value = "/infoAcmd", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> infoAcmd(@RequestBody final KtAcmdInfoRequest reqDTO) {
public IApiResponse infoAcmd(@RequestBody final KtAcmdInfoRequest reqDTO) {
KtAcmdInfoResponse dto = service.infoAcmd(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(hidden = true, summary = "전자문서 유통정보 수치확인서 발급 처리", description = "전자문서 유통정보 수치확인서 발급 처리(BC-AG-HS-002)")
@PostMapping(value = "/cfmAcmd", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> cfmAcmd(@RequestBody final KtAcmdInfoCfmRequest reqDTO) {
public IApiResponse cfmAcmd(@RequestBody final KtAcmdInfoCfmRequest reqDTO) {
KtAcmdInfoCfmResponse dto = service.cfmAcmd(reqDTO);
return ApiResponseDTO.success(dto);
}

@ -6,6 +6,7 @@ import io.swagger.v3.oas.annotations.media.ExampleObject;
import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.ens.model.nice.NiceCiDTO.NiceCiRequest;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import kr.xit.ens.nice.cmm.CmmNiceCiUtils;
import kr.xit.ens.nice.service.INiceCiService;
import lombok.RequiredArgsConstructor;
@ -57,13 +58,13 @@ public class NiceCiController {
//--------------------------------------------------------------------------------
@Operation(deprecated = true, summary = "기관용 토큰 발급 요청 -> 업무(Biz)단 API 사용", description = "NICE 정보 DB update가 필요하여 업무단의 API를 사용하여야 함")
@PostMapping(value = "/generateToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> generateToken(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse generateToken(@RequestBody final NiceCiRequest reqDTO) {
return ApiResponseDTO.success(service.generateToken(reqDTO));
}
@Operation(deprecated = true, summary = "기관용 토큰 폐기 -> 업무(Biz)단 API 사용", description = "NICE 정보 DB update가 필요하여 업무단의 API를 사용하여야 함")
@PostMapping(value = "/revokeToken", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> revokeToken(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse revokeToken(@RequestBody final NiceCiRequest reqDTO) {
return ApiResponseDTO.success(service.revokeToken(reqDTO));
}
//--------------------------------------------------------------------------------
@ -77,7 +78,7 @@ public class NiceCiController {
*/
@Operation(deprecated = true, summary = "공개키 요청 -> 업무(Biz)단 API 사용", description = "NICE 정보 DB update가 필요하여 업무단의 API를 사용하여야 함")
@PostMapping(value = "/requestPublickey", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestPublickey(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse requestPublickey(@RequestBody final NiceCiRequest reqDTO) {
return ApiResponseDTO.success(service.requestPublickey(reqDTO));
}
//--------------------------------------------------------------------------------
@ -87,7 +88,7 @@ public class NiceCiController {
//--------------------------------------------------------------------------------
@Operation(deprecated = true, summary = "대칭키(symmetrickey) 등록 요청 -> 업무(Biz)단 API 사용", description = "NICE 정보 DB update가 필요하여 업무단의 API를 사용하여야 함")
@PostMapping(value = "/requestRegSymmetrickey", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestRegSymmetrickey(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse requestRegSymmetrickey(@RequestBody final NiceCiRequest reqDTO) {
return ApiResponseDTO.success(service.requestRegSymmetrickey(reqDTO, CmmNiceCiUtils.getSymkeyRegInfo()));
}
//--------------------------------------------------------------------------------
@ -109,7 +110,7 @@ public class NiceCiController {
})
@Operation(summary = "아이핀 CI 요청", description = "아이핀 CI 요청")
@PostMapping(value = "/requestCi", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestCi(@RequestBody final NiceCiRequest reqDTO) {
public IApiResponse requestCi(@RequestBody final NiceCiRequest reqDTO) {
return ApiResponseDTO.success(service.requestCi(reqDTO));
}
//--------------------------------------------------------------------------------

@ -17,10 +17,10 @@ import java.net.URL;
import java.net.URLConnection;
import kr.xit.core.exception.BizRuntimeException;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -37,7 +37,7 @@ public class ApiExample {
@Operation(summary = "우편제작접수 샘플", description = "우편제작접수 샘플")
@PostMapping(value = "/apiExample", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> apiExample() {
public IApiResponse apiExample() {
// master
JSONArray masterCols = new JSONArray();

@ -69,7 +69,7 @@ public class PplusController {
@Operation(summary = "우편제작 상태 조회", description = "우편제작상태조회")
@PostMapping(value = "/status", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> status(@RequestBody final PpStatusRequest paramDTO) {
public IApiResponse status(@RequestBody final PpStatusRequest paramDTO) {
return ApiResponseDTO.success(service.status(paramDTO));
}
@ -87,7 +87,7 @@ public class PplusController {
@PostMapping(value = "/accept2")
public ApiResponseDTO<?> accept2() {
public IApiResponse accept2() {
return ApiResponseDTO.success();
}

@ -15,6 +15,7 @@ import kr.xit.batch.ens.job.SndngStatusBulksJobConfig;
import kr.xit.biz.common.ApiConstants;
import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import kr.xit.core.support.utils.Checks;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@ -28,7 +29,10 @@ import org.springframework.batch.core.repository.JobInstanceAlreadyCompleteExcep
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
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.RestController;
/**
* <pre>
@ -66,7 +70,7 @@ public class KkopayEltrcDocBatchController {
@Operation(summary = "accept", description = "accept")
@PostMapping(value = "/accept", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> accept(@RequestBody final CmmEnsRequestDTO reqDTO) {
public IApiResponse accept(@RequestBody final CmmEnsRequestDTO reqDTO) {
try {
JobExecution jobExecution = jobLauncher.run(
acceptJobConfig.sndngAcceptJob(),
@ -88,7 +92,7 @@ public class KkopayEltrcDocBatchController {
@Operation(summary = "make", description = "make")
@PostMapping(value = "/make", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> make(@RequestBody final CmmEnsRequestDTO reqDTO) {
public IApiResponse make(@RequestBody final CmmEnsRequestDTO reqDTO) {
try {
JobExecution jobExecution = jobLauncher.run(
@ -111,7 +115,7 @@ public class KkopayEltrcDocBatchController {
@Operation(summary = "close", description = "close")
@PostMapping(value = "/close", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> close(@RequestBody final CmmEnsRequestDTO reqDTO) {
public IApiResponse close(@RequestBody final CmmEnsRequestDTO reqDTO) {
try {
JobExecution jobExecution = jobLauncher.run(
@ -134,7 +138,7 @@ public class KkopayEltrcDocBatchController {
@Operation(summary = "sendBulks", description = "sendBulks")
@PostMapping(value = "/sendBulks", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> sendBulks(@RequestBody final CmmEnsRequestDTO reqDTO) {
public IApiResponse sendBulks(@RequestBody final CmmEnsRequestDTO reqDTO) {
try {
JobExecution jobExecution = jobLauncher.run(
@ -157,7 +161,7 @@ public class KkopayEltrcDocBatchController {
@Operation(summary = "statusBulks", description = "statusBulks")
@PostMapping(value = "/statusBulks", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> statusBulks(@RequestBody final CmmEnsRequestDTO reqDTO) {
public IApiResponse statusBulks(@RequestBody final CmmEnsRequestDTO reqDTO) {
try {
JobExecution jobExecution = jobLauncher.run(
@ -180,7 +184,7 @@ public class KkopayEltrcDocBatchController {
@Operation(summary = "pniCctvFileService", description = "CCTV 사전알림(서광)")
@PostMapping(value = "/pniCctvFileService", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> pniCctvFileService(@RequestBody final CmmEnsRequestDTO reqDTO) {
public IApiResponse pniCctvFileService(@RequestBody final CmmEnsRequestDTO reqDTO) {
try {
JobExecution jobExecution = jobLauncher.run(
@ -203,7 +207,7 @@ public class KkopayEltrcDocBatchController {
@Operation(summary = "pniCctvAccept", description = "CCTV 단속 사전알림 accept")
@PostMapping(value = "/pniCctvAccept", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> pniCctvAccept(@RequestBody final CmmEnsRequestDTO reqDTO) {
public IApiResponse pniCctvAccept(@RequestBody final CmmEnsRequestDTO reqDTO) {
try {
JobExecution jobExecution = jobLauncher.run(

@ -10,6 +10,7 @@ import kr.xit.biz.ens.model.kakao.KkopayDocBulkDTO.BulkStatusRequests;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.SendRequest;
import kr.xit.biz.ens.service.IEnsBatchService;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import kr.xit.core.spring.util.ApiWebClientUtil;
import kr.xit.core.support.utils.JsonUtils;
import lombok.RequiredArgsConstructor;
@ -92,7 +93,7 @@ public class ApiCallTestController {
})
@Operation(summary = "문서발송 요청", description = "카카오페이 전자문서 서버로 문서발송 처리를 요청")
@PostMapping(value = "/documents", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestSend(
public IApiResponse requestSend(
@RequestBody final SendRequest reqDTO
) {
StringBuilder url = new StringBuilder()
@ -151,7 +152,7 @@ public class ApiCallTestController {
})
})
@PostMapping(value = "/documents/bulk", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> requestSendBulk(
public IApiResponse requestSendBulk(
@RequestBody final BulkSendRequests reqDTO
) {
final String url = apiHost + apiBulkSend;
@ -187,7 +188,7 @@ public class ApiCallTestController {
})
@Operation(summary = "대량 문서 상태 조회 요청", description = "카카오페이 전자문서 서버로 대량 문서 상태 조회 요청")
@PostMapping(value = "/documents/bulk/status", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> findBulkStatus(
public IApiResponse findBulkStatus(
@RequestBody final BulkStatusRequests reqDTO
) {
final String url = apiHost + apiBulkStatus;;

@ -1,18 +1,19 @@
package kr.xit.biz.ens.web;
import java.util.Map;
import kr.xit.biz.ens.model.EnsDTO;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.ExampleObject;
import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.ens.model.EnsDTO;
import kr.xit.biz.ens.service.IEnsBatchService;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import lombok.RequiredArgsConstructor;
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.RestController;
/**
* <pre>
@ -52,7 +53,7 @@ public class EnsBatchController {
})
})
@PostMapping(value = "/accept", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> accept(@RequestBody final EnsDTO.BatchEnsRequest reqDTO) {
public IApiResponse accept(@RequestBody final EnsDTO.BatchEnsRequest reqDTO) {
service.accept(reqDTO);
return ApiResponseDTO.success();
}
@ -71,7 +72,7 @@ public class EnsBatchController {
})
})
@PostMapping(value = "/make", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> make(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
public IApiResponse make(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
service.make(reqDTO);
return ApiResponseDTO.success();
}
@ -90,7 +91,7 @@ public class EnsBatchController {
})
})
@PostMapping(value = "/close", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> close(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
public IApiResponse close(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
service.close(reqDTO);
return ApiResponseDTO.success();
}
@ -109,7 +110,7 @@ public class EnsBatchController {
})
})
@PostMapping(value = "/sendBulks", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> sendBulks(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
public IApiResponse sendBulks(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
service.sendBulks(reqDTO);
return ApiResponseDTO.success();
}
@ -128,7 +129,7 @@ public class EnsBatchController {
})
})
@PostMapping(value = "/findStatusBulks", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> findStatusBulks(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
public IApiResponse findStatusBulks(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
service.findKkoMyDocStatusBulks(reqDTO);
return ApiResponseDTO.success();
}
@ -148,7 +149,7 @@ public class EnsBatchController {
})
})
@PostMapping(value = "/findKakaoSendTargets", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> findkakaoSendTargets(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
public IApiResponse findkakaoSendTargets(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){
return ApiResponseDTO.success(service.findKakaoSendTargets(reqDTO));
}
}

@ -3,8 +3,8 @@ package kr.xit.biz.ens.web;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.ens.service.IEnsCctvFileService;
import kr.xit.biz.pni.service.IPniCctvFileService;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
@ -35,14 +35,14 @@ public class EnsCctvFileController {
@Operation(summary = "전자고지 파일 연계 데이타 생성(서광)", description = "전자고지 파일 연계 데이타 생성(서광)")
@PostMapping(value = "/createCctvFileOfSg", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> createCctvFileOfSg() {
public IApiResponse createCctvFileOfSg() {
service.createCctvFileOfSg();
return ApiResponseDTO.success();
}
@Operation(summary = "전자고지 연계 데이타 생성(accept)", description = "전자고지 연계 데이타 생성(accept)")
@PostMapping(value = "/acceptEnsNtnccntcSndng", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> acceptEnsNtnccntcSndng() {
public IApiResponse acceptEnsNtnccntcSndng() {
service.acceptEnsNtnccntcSndng();
return ApiResponseDTO.success();
}

@ -4,9 +4,12 @@ import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.pni.service.IPniCctvFileService;
import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <pre>
@ -32,14 +35,14 @@ public class PniCctvFileController {
@Operation(summary = "사전고지 파일 연계 데이타 생성(서광)", description = "사전고지 파일 연계 데이타 생성(서광)")
@PostMapping(value = "/cctvFileOfSg", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> cctvFileOfSg() {
public IApiResponse cctvFileOfSg() {
service.createCctvFileOfSg();
return ApiResponseDTO.success();
}
@Operation(summary = "사전고지 연계 데이타 생성(accept)", description = "사전고지 연계 데이타 생성(accept)")
@PostMapping(value = "/acceptPniNtnccntcSndng", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> acceptPniNtnccntcSndng() {
public IApiResponse acceptPniNtnccntcSndng() {
service.acceptPniNtnccntcSndng();
return ApiResponseDTO.success();
}

Loading…
Cancel
Save