|
|
@@ -0,0 +1,31 @@
|
|
|
+package com.github.microservice.models.iot;
|
|
|
+
|
|
|
+import cn.hutool.json.JSONObject;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 发送消息的参数模型
|
|
|
+ *
|
|
|
+ * @author TRX
|
|
|
+ * @date 2024/9/9
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@AllArgsConstructor
|
|
|
+@NoArgsConstructor
|
|
|
+public class IotSendByIdParam {
|
|
|
+
|
|
|
+ @Schema(description = "物模型数据id")
|
|
|
+ private String id;
|
|
|
+
|
|
|
+ @NotNull(message = "data不能为空")
|
|
|
+ @Schema(description = "数据信息")
|
|
|
+ private JSONObject data;
|
|
|
+
|
|
|
+ @Schema(description = "消息过期时间", defaultValue = "5000")
|
|
|
+ private Long ttl = 5000l;
|
|
|
+
|
|
|
+}
|