fix: KT API DTO fix

dev
gitea-관리자 1 year ago
parent d10b761a42
commit d736cacca3

@ -90,7 +90,7 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm
KtMainSendReqData reqData = KtMainSendReqData.builder()
.srcKey("db")
.srcSeq("1++")
.srcSeq("1")
.ci("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678")
.mmsDtlCnts("db")
.docHash("db")
@ -99,7 +99,7 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm
.mmsBinary("")
.fileFmat("")
.mdn("")
.distInfoCrtYn("N")
.distInfoCrtYn("Y")
//.infoCfrmStr("")
.build();
mainSendReqs.add(reqData);

@ -7,7 +7,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.Map;
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse;
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtMnsRequest;
import kr.xit.biz.ens.model.kt.KtMmsSendDTO.KtMsgRsltRequest;
import kr.xit.biz.kt.service.IBizKtMmsService;
import kr.xit.core.model.ApiResponseDTO;
import lombok.RequiredArgsConstructor;
@ -43,14 +42,14 @@ public class BizKtMmsController {
{
"signguCode": "88328",
"ffnlgCode": "11",
"juminId": "9901011263512"
"profile": "local"
}
""";
private static final String PARAM2 = """
{
"signguCode": "88316",
"ffnlgCode": "11",
"juminId": "9901011263512"
"profile": "local"
}
""";
@ -86,7 +85,7 @@ public class BizKtMmsController {
value = PARAM2)
})
})
@Operation(summary = "본문자 수신 등록 요청", description = "본문자 수신 등록 요청(BC-AG-SN-002)")
@Operation(summary = "본문자 수신 등록 요청(BC-AG-SN-002)", description = "본문자 수신 등록 요청(BC-AG-SN-002)")
@PostMapping(value = "/mainSend", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> mainSend(@RequestBody final KtMnsRequest reqDTO) {
KtCommonResponse dto = service.mainSend(reqDTO);
@ -105,7 +104,7 @@ public class BizKtMmsController {
value = PARAM2)
})
})
@Operation(summary = "사전/본 문자 발송/수신 결과 전송 요청", description = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010)")
@Operation(summary = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010)", description = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010)")
@PostMapping(value = "/messageResult", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> messageResult(@RequestBody final KtMnsRequest reqDTO) {
KtCommonResponse dto = service.messageResult(reqDTO);

@ -2,7 +2,6 @@ package kr.xit.ens.kt.web;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.cmm.service.ICmmEnsCacheService;
import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdCerfRequest;
import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdCerfResponse;
import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdInfoCfmRequest;
@ -55,8 +54,8 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/api/ens/kt/v1")
public class KtMmsController {
private final IKtMmsService service;
private final ICmmEnsCacheService ensCacheService;
//------------------------------------------------------------------------------
// mens 사용 API
@ -67,28 +66,28 @@ public class KtMmsController {
return ApiResponseDTO.success(service.requestToken(paramDTO));
}
@Operation(summary = "본문자 수신 등록 요청", description = "본문자 수신 등록 요청(BC-AG-SN-002)")
@Operation(summary = "본문자 수신 등록 요청(BC-AG-SN-002)", description = "본문자 수신 등록 요청(BC-AG-SN-002)")
@PostMapping(value = "/mainSend", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> mainSend(@RequestBody final KtMainSendRequest reqDTO) {
KtCommonResponse dto = service.mainSend(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(summary = "토큰인증확인 조회", description = "토큰인증확인조회요청(BC-AG-SN-008)")
@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) {
KtCommonResponse dto = service.cfmToken(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(summary = "토큰열람확인결과 전송", description = "토큰열람확인결과 전송(BC-AG-SN-009)")
@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) {
KtCommonResponse dto = service.readToken(reqDTO);
return ApiResponseDTO.success(dto);
}
@Operation(summary = "사전/본 문자 발송/수신 결과 전송 요청", description = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010)")
@Operation(summary = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010)", description = "사전/본 문자 발송/수신 결과 전송 요청(BC-AG-SN-010)")
@PostMapping(value = "/messageResult", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponseDTO<?> messageResult(@RequestBody final KtMsgRsltRequest reqDTO) {
KtCommonResponse dto = service.messageResult(reqDTO);

@ -63,14 +63,6 @@ public class KtCommonDTO {
@Schema(requiredMode = RequiredMode.AUTO, title = "profile", example = "local")
@JsonProperty("profile")
private String profile;
/**
* Id
*/
@Schema(requiredMode = RequiredMode.NOT_REQUIRED, title = "주민번호", example = " ")
@Size(min = 0, max = 13, message = "주민번호는 13자리 입니다.")
@JsonProperty("juminId")
private String juminId;
}
@Schema(name = "KtCommonResponse", description = "KT 응답 공통 DTO")

@ -384,7 +384,7 @@ public class KtMmsSendDTO {
* BizCenter
* </pre>
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "서비스 코드", example = "NPS")
@Schema(requiredMode = RequiredMode.REQUIRED, title = "서비스 코드", example = "SISUL")
@NotEmpty(message = "서비스 코드는 필수 입니다(max:20)")
@Size(max = 20)
private String serviceCd;
@ -395,7 +395,7 @@ public class KtMmsSendDTO {
* BizCenter
* </pre>
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "서비스코드", example = "A3AD41349D759DD3")
@Schema(requiredMode = RequiredMode.REQUIRED, title = "서비스코드", example = "8TASJCZEPDUIFSJI")
@Size(min = 16, max = 16, message = "서비스 코드 인증키는 필수 입니다")
private String serviceKey;
@ -425,7 +425,7 @@ public class KtMmsSendDTO {
* (YYYYMMDDHHMiSS)
* </pre>
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "발송시작일시", example = "20211229102000")
@Schema(requiredMode = RequiredMode.REQUIRED, title = "발송시작일시", example = "20231019090000")
@Size(min = 14, max = 14, message = "발송시작일시는 필수 입니다(YYYYMMDDHHMiSS)")
private String makeDt;
@ -435,7 +435,7 @@ public class KtMmsSendDTO {
* (YYYYMMDDHHMiSS)
* </pre>
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "발송마감시간", example = "20211229180000")
@Schema(requiredMode = RequiredMode.REQUIRED, title = "발송마감시간", example = "20231130090000")
@Size(min = 14, max = 14, message = "발송마감시간은 필수 입니다(YYYYMMDDHHMiSS)")
private String sndnExTime;
@ -445,7 +445,7 @@ public class KtMmsSendDTO {
* (YYYYMMDDHHMiSS)
* </pre>
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "열람마감시간", example = "20211229180000")
@Schema(requiredMode = RequiredMode.REQUIRED, title = "열람마감시간", example = "20231130090000")
@Size(min = 14, max = 14, message = "열람마감시간은 필수 입니다(YYYYMMDDHHMiSS)")
private String exTime;
@ -460,8 +460,7 @@ public class KtMmsSendDTO {
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "문서종류", example = "2")
@NotEmpty(message = "문서종류는 필수 입니다(max:3)")
@JsonProperty("m_type")
private final String mType = "4";
private final String m_type = "4";
/**
* <pre>
@ -678,7 +677,7 @@ public class KtMmsSendDTO {
/**
* : Unique key
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "관리키", example = "S20211229102000001")
@Schema(requiredMode = RequiredMode.REQUIRED, title = "관리키", example = "S20211229102000011")
@NotEmpty(message = "관리키는 필수 입니다(max:50)")
@Size(max = 50)
private String srcKey;
@ -694,7 +693,7 @@ public class KtMmsSendDTO {
/**
* : 88
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "개인식별코드", example = "gdlIa53FZGQz5aKa3wLk33nW57N3mDpcwHytWlWMhzxHKulk7EZs143442394326642342364238648423864237")
@Schema(requiredMode = RequiredMode.REQUIRED, title = "개인식별코드", example = "vMtqVxJX56lBgbf9heK3QTc+jVndTfK77i/UJKAzPmBG4n9CazCdd/8YytlFZnN4qofIqgxHpSoiG0yYzgEpJg==")
@Size(min = 88, max = 88, message = "개인식별코드는 필수 입니다(88자리)")
private String ci;
@ -706,7 +705,7 @@ public class KtMmsSendDTO {
* , 'Y' {#RCVE_RF_STR} .
* </pre>
*/
@Schema(requiredMode = RequiredMode.REQUIRED, title = "MMS 상세내용", example = "gdlIa53FZGQz5aKa3wLk33nW57N3mDpcwHytWlWMhzxHKulk7EZs143442394326642342364238648423864237")
@Schema(requiredMode = RequiredMode.REQUIRED, title = "MMS 상세내용", example = "공공알림문자 테스트입니다.")
@Size(min = 1, max = 4000, message = "MMS 상세내용은 4000자를 넘을 수 없습니다.")
private String mmsDtlCnts;
@ -724,7 +723,7 @@ public class KtMmsSendDTO {
* utf-8 20
* </pre>
*/
@Schema(requiredMode = RequiredMode.AUTO, title = "MMS 제목", example = "01011112222")
@Schema(requiredMode = RequiredMode.AUTO, title = "MMS 제목", example = "공유재산사용료 정기분")
@Size(max = 40, message = "MMS 제목은 40자를 넘을 수 없습니다")
private String mmsTitle;
@ -734,7 +733,7 @@ public class KtMmsSendDTO {
* dist_info_crt_yn 'Y'
* </pre>
*/
@Schema(requiredMode = RequiredMode.AUTO, title = "연결 URL", example = " ")
@Schema(requiredMode = RequiredMode.AUTO, title = "연결 URL", example = "http://localhost:8081/api/biz/kt/v1/receiveMain")
@Size(max = 1000, message = "연결 URL은 1000자를 넘을 수 없습니다.")
private String url;
@ -763,7 +762,7 @@ public class KtMmsSendDTO {
* MDN
* </pre>
*/
@Schema(requiredMode = RequiredMode.AUTO, title = "개인휴대전화번호", example = "01011112222")
@Schema(requiredMode = RequiredMode.AUTO, title = "개인휴대전화번호", example = "01093414345")
@Size(max = 11, message = "개인 휴대 전화번호는 11자리 입니다")
private String mdn;

Loading…
Cancel
Save