20250113_2

main
seokjun jeon 2 weeks ago
parent 52092d17aa
commit cc74107fce

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

Loading…
Cancel
Save