parent
691f2f77bc
commit
ec154190e4
13 changed files with 318 additions and 88 deletions
@ -0,0 +1,108 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are met: |
||||||
|
* |
||||||
|
* Redistributions of source code must retain the above copyright notice, |
||||||
|
* this list of conditions and the following disclaimer. |
||||||
|
* Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its |
||||||
|
* contributors may be used to endorse or promote products derived from |
||||||
|
* this software without specific prior written permission. |
||||||
|
* Author: Chill 庄骞 (smallchill@163.com) |
||||||
|
*/ |
||||||
|
package org.springblade.hospital.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.util.Date; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* 报警信息 |
||||||
|
* |
||||||
|
* @author BladeX |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class AlarmData implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件系统内编号(第三方报警 ID) |
||||||
|
*/ |
||||||
|
private String alarmId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件类型, 参考数据字典 AlarmType 定义 |
||||||
|
*/ |
||||||
|
private Integer alarmType; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件说明 |
||||||
|
*/ |
||||||
|
private String alarmMsg; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件状态,1:已处理,0:未处理 。默认填 0 |
||||||
|
*/ |
||||||
|
private Integer handleStatus; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件源类型,0:设备,1:数据分析。默认填 |
||||||
|
* 0 |
||||||
|
*/ |
||||||
|
private Integer srcType; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件源上报的三方厂商设备唯一编号 |
||||||
|
*/ |
||||||
|
private String srcDeviceId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件上报平台 |
||||||
|
*/ |
||||||
|
private String srcReporter; |
||||||
|
|
||||||
|
/** |
||||||
|
* 长整型,事件产生时间戳,精确到毫秒 |
||||||
|
*/ |
||||||
|
private Long startTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 长整型,事件结束时间戳,精确到毫秒 |
||||||
|
*/ |
||||||
|
private Long endTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 浮点型数字,事件发生地址,纬度 |
||||||
|
*/ |
||||||
|
private Double latitude; |
||||||
|
|
||||||
|
/** |
||||||
|
* 浮点型数字,事件发生地址,经度 |
||||||
|
*/ |
||||||
|
private Double longitude; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件产生时抓拍的图片地址 |
||||||
|
*/ |
||||||
|
private List<String> pictureList; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件产生抓拍的视频地址 |
||||||
|
*/ |
||||||
|
private List<String> videoList; |
||||||
|
|
||||||
|
/** |
||||||
|
* 事件参数,内容取决于告警类型 |
||||||
|
*/ |
||||||
|
private Map<String, Object> params; |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,45 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are met: |
||||||
|
* |
||||||
|
* Redistributions of source code must retain the above copyright notice, |
||||||
|
* this list of conditions and the following disclaimer. |
||||||
|
* Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its |
||||||
|
* contributors may be used to endorse or promote products derived from |
||||||
|
* this software without specific prior written permission. |
||||||
|
* Author: Chill 庄骞 (smallchill@163.com) |
||||||
|
*/ |
||||||
|
package org.springblade.hospital.entity; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* 报警信息 |
||||||
|
* |
||||||
|
* @author BladeX |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class Alarms implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 所属区域编号 |
||||||
|
*/ |
||||||
|
private String regionId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设备唯一编号 |
||||||
|
*/ |
||||||
|
private List<AlarmData> alarmList; |
||||||
|
|
||||||
|
} |
||||||
Loading…
Reference in new issue