|
|
|
|
@ -6,6 +6,7 @@ import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.sql.DataSource;
|
|
|
|
|
|
|
|
|
|
import org.apache.ibatis.mapping.VendorDatabaseIdProvider;
|
|
|
|
|
@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.applib.AppCmmnUtil;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
import cokr.xit.foundation.web.AbstractController;
|
|
|
|
|
import cokr.xit.interfaces.message.MessageEntity;
|
|
|
|
|
@ -51,7 +53,10 @@ public class MessageInterfaceController extends AbstractController {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@PostMapping(name="문자전송 요청 등록", value="/regist")
|
|
|
|
|
public ModelAndView regist(@RequestBody JSONObject apiSpec) {
|
|
|
|
|
public ModelAndView regist(HttpServletRequest hreq, @RequestBody JSONObject apiSpec) {
|
|
|
|
|
|
|
|
|
|
String dmndIp = AppCmmnUtil.getClientIpAddr(hreq);
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
|
|
|
|
|
MessageUtil forPlainText = new MessageUtil("plain");
|
|
|
|
|
@ -186,6 +191,7 @@ public class MessageInterfaceController extends AbstractController {
|
|
|
|
|
for(Map<String,Object> req : reqs) {
|
|
|
|
|
|
|
|
|
|
MessageEntity messageEntity = new MessageEntity();
|
|
|
|
|
messageEntity.setDmndIp(dmndIp);
|
|
|
|
|
messageEntity.setSubId(nuri2Id);
|
|
|
|
|
|
|
|
|
|
messageEntity.setSggCd(sggCd);
|
|
|
|
|
|