|
|
|
@ -22,29 +22,20 @@ import java.util.Map;
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class MessagingConnector {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private RestTemplate restTemplate;
|
|
|
|
|
public RestTemplate restTemplate;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private MessageSendServiceDsl messageSendServiceDsl;
|
|
|
|
|
public MessageSendServiceDsl messageSendServiceDsl;
|
|
|
|
|
|
|
|
|
|
@Value("${message.url.sms}")
|
|
|
|
|
private String sms;
|
|
|
|
|
|
|
|
|
|
@Value("${message.url.lms}")
|
|
|
|
|
private String lms;
|
|
|
|
|
|
|
|
|
|
@Value("${message.url.mms}")
|
|
|
|
|
private String mms;
|
|
|
|
|
|
|
|
|
|
@Value("${message.url.kakao}")
|
|
|
|
|
private String kakao;
|
|
|
|
|
|
|
|
|
|
@Value("${message.key.sejong}")
|
|
|
|
|
private String apiKey;
|
|
|
|
|
|
|
|
|
|
public MessagingConnector(String sms, String lms,String mms,String kakao,String apiKey){
|
|
|
|
@ -207,7 +198,8 @@ public class MessagingConnector {
|
|
|
|
|
*/
|
|
|
|
|
public MessageSendResponse responseChange(SejongMessageSendResponse response, MessageSendRequest request) {
|
|
|
|
|
MessageSendResponse messageSendResponse = new MessageSendResponse();
|
|
|
|
|
|
|
|
|
|
System.out.println("request : " + request);
|
|
|
|
|
System.out.println("response : " + response);
|
|
|
|
|
messageSendResponse.setSendType(request.getSendType());
|
|
|
|
|
messageSendResponse.setSendCode(response.getSendCode());
|
|
|
|
|
|
|
|
|
|