| | |
| | | package com.ruoyi.dataInterchange.controller; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.bean.BeanUtils; |
| | | import com.ruoyi.dataInterchange.api.vo.UPWarnMsgAdptInfoVo; |
| | |
| | | import com.ruoyi.dataInterchange.dao.UPWarnMsgUrgeTodoAckDao; |
| | | import com.ruoyi.dataInterchange.model.UPWarnMsgAdptInfo; |
| | | import com.ruoyi.dataInterchange.model.UPWarnMsgUrgeTodoAck; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.dataInterchange.util.haikang.model.SubscriptionEvent; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | |
| | | * @author zhibing.pu |
| | | * @Date 2025/4/2 10:08 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/warnMsgAdptInfo") |
| | | public class UPWarnMsgAdptInfoController { |
| | |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 海康威视报警信息推送 |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/alarmNotice") |
| | | public void alarmNotice(@RequestBody SubscriptionEvent event) { |
| | | log.error("收到危海康的事件回调"); |
| | | log.error(JSON.toJSONString(event)); |
| | | } |
| | | } |