feat: init iot-util project with OneNET API integration
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.yixiong.iot.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 设备事件记录单条数据
|
||||
*/
|
||||
@Data
|
||||
public class DeviceEventItem {
|
||||
|
||||
/**
|
||||
* 事件类型
|
||||
* 1-信息;2-告警;3-故障
|
||||
*/
|
||||
@JsonProperty("event_type")
|
||||
private Integer eventType;
|
||||
|
||||
/** 设备事件上报时间戳(毫秒) */
|
||||
private Long time;
|
||||
|
||||
/** 事件功能点标识 */
|
||||
private String identifier;
|
||||
|
||||
/** 事件名称 */
|
||||
private String name;
|
||||
|
||||
/** 事件值(JSON 字符串) */
|
||||
private String value;
|
||||
}
|
||||
Reference in New Issue
Block a user