TRX 1 gadu atpakaļ
vecāks
revīzija
fac25ef914

+ 19 - 0
src/main/java/com/github/microservice/models/onLine/DeviceOnLineParam.java

@@ -0,0 +1,19 @@
+package com.github.microservice.models.onLine;
+
+import com.github.microservice.models.hxz.IotSuperModel;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+/**
+ * @author TRX
+ * @date 2025/2/21
+ */
+@Data
+public class DeviceOnLineParam extends IotSuperModel {
+
+    @Schema(description = "类型")
+    private String operator;
+
+    @Schema(description = "信息")
+    private Object info;
+}

+ 34 - 0
src/main/java/com/github/microservice/models/onLine/DeviceOnLineResult.java

@@ -0,0 +1,34 @@
+package com.github.microservice.models.onLine;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.github.microservice.models.hxz.base.IotBaseResult;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+/**
+ * @author TRX
+ * @date 2025/2/21
+ */
+@Data
+public class DeviceOnLineResult extends IotBaseResult {
+
+    @Schema(description = "类型")
+    private String operator;
+
+    @JsonProperty("deviceId")
+    @Schema(description = "设备ID")
+    private String deviceId;
+
+    @JsonProperty("gateWayId")
+    @Schema(description = "网关ID")
+    private String gateWayId;
+
+    @Schema(description = "mqtt推送生成的业务数据ID")
+    private String mqttDataId;
+
+    @Schema(description = "时间,格式:2025-02-21 10:21:41")
+    private String time;
+
+    @Schema(description = "信息")
+    private Object info;
+}