|
|
@ -1,6 +1,8 @@
|
|
|
|
package kr.xit.ens.kt.web;
|
|
|
|
package kr.xit.ens.kt.web;
|
|
|
|
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
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 io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
import kr.xit.biz.cmm.service.ICmmEnsCacheService;
|
|
|
|
import kr.xit.biz.cmm.service.ICmmEnsCacheService;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse;
|
|
|
@ -11,10 +13,7 @@ import kr.xit.core.spring.annotation.JsonArg;
|
|
|
|
import kr.xit.ens.kt.service.IKtMmsService;
|
|
|
|
import kr.xit.ens.kt.service.IKtMmsService;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <pre>
|
|
|
|
* <pre>
|
|
|
@ -44,6 +43,7 @@ public class KtMmsController {
|
|
|
|
public ApiResponseDTO<?> requestToken(@RequestBody final KtMnsRequest paramDTO) {
|
|
|
|
public ApiResponseDTO<?> requestToken(@RequestBody final KtMnsRequest paramDTO) {
|
|
|
|
return ApiResponseDTO.success(service.requestToken(paramDTO));
|
|
|
|
return ApiResponseDTO.success(service.requestToken(paramDTO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
@io.swagger.v3.oas.annotations.parameters.RequestBody(required = true, content = {
|
|
|
|
@io.swagger.v3.oas.annotations.parameters.RequestBody(required = true, content = {
|
|
|
|
@Content(
|
|
|
|
@Content(
|
|
|
@ -52,6 +52,8 @@ public class KtMmsController {
|
|
|
|
@ExampleObject(
|
|
|
|
@ExampleObject(
|
|
|
|
value = """
|
|
|
|
value = """
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
"signguCode": "",
|
|
|
|
|
|
|
|
"ffnlgCode": "11",
|
|
|
|
"service_cd": "NPS",
|
|
|
|
"service_cd": "NPS",
|
|
|
|
"service_key": "A3AD41349D759DD3",
|
|
|
|
"service_key": "A3AD41349D759DD3",
|
|
|
|
"msg_cd": "10006",
|
|
|
|
"msg_cd": "10006",
|
|
|
@ -76,10 +78,8 @@ public class KtMmsController {
|
|
|
|
})*/
|
|
|
|
})*/
|
|
|
|
@Operation(summary = "사전 문자 수신 등록 요청", description = "사전 문자 수신 등록 요청(BC-AG-SN-001)")
|
|
|
|
@Operation(summary = "사전 문자 수신 등록 요청", description = "사전 문자 수신 등록 요청(BC-AG-SN-001)")
|
|
|
|
@PostMapping(value = "/beforeSend", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@PostMapping(value = "/beforeSend", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public ApiResponseDTO<?> beforeSend(@RequestBody @JsonArg final KtMnsRequest paramDTO, @RequestBody @JsonArg final KtBefSendRequest reqDTO) {
|
|
|
|
public ApiResponseDTO<?> beforeSend(@RequestBody final KtBefSendRequest reqDTO) {
|
|
|
|
//public ApiResponseDTO<?> beforeSend(@RequestBody final KtBefSendRequest reqDTO) {
|
|
|
|
KtCommonResponse dto = service.beforeSend(reqDTO);
|
|
|
|
|
|
|
|
|
|
|
|
KtCommonResponse dto = service.beforeSend(null, reqDTO);
|
|
|
|
|
|
|
|
return ApiResponseDTO.success(dto);
|
|
|
|
return ApiResponseDTO.success(dto);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|