Browse Source

事件接受

Memory_LG 1 tháng trước cách đây
mục cha
commit
456909e429

+ 7 - 0
src/main/java/com/sooka/sponest/event/centereventteventcatalogue/controller/AlarmEventController.java

@@ -3,6 +3,7 @@ package com.sooka.sponest.event.centereventteventcatalogue.controller;
 import com.alibaba.fastjson.JSONObject;
 import com.ruoyi.common.core.domain.R;
 import com.ruoyi.common.core.utils.StringUtils;
+import com.ruoyi.common.core.web.domain.AjaxResult;
 import com.sooka.sponest.event.centereventteventcatalogue.domain.dahua.DaHuaFireEventVO;
 import com.sooka.sponest.event.centereventteventcatalogue.domain.dahua.DaHuaOtherEventVO;
 import com.sooka.sponest.event.centereventteventcatalogue.domain.haikang.HaiKangEventVo;
@@ -203,4 +204,10 @@ public class AlarmEventController {
         }
         return R.ok();
     }
+
+    @PostMapping("/eventConsumer")
+    public AjaxResult eventConsumer(@RequestBody String jsonStr) {
+        logger.info("eventConsumer接收到的消息:-->" + jsonStr);
+        return AjaxResult.success();
+    }
 }