From e12439d1f4a94957d68cda653cb666702bc71040 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期三, 26 八月 2026 16:09:55 +0800
Subject: [PATCH] feat(device): implement adapter registry and discovery

---
 ruoyi-system/src/main/java/com/ruoyi/system/domain/TDetectionCabinet.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDetectionCabinet.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDetectionCabinet.java
index 80b3d7c..4610327 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDetectionCabinet.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDetectionCabinet.java
@@ -2,6 +2,7 @@
 
 import java.math.BigDecimal;
 import java.util.Date;
+import java.time.Instant;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import jakarta.validation.constraints.Max;
 import jakarta.validation.constraints.Min;
@@ -22,6 +23,13 @@
 
     /** 检测柜主键。 */
     private Long cabinetId;
+
+    /** 所属设备适配器实例。 */
+    private Long adapterId;
+
+    private Integer vendorDeviceType;
+    private Integer vendorDeviceId;
+    private Instant lastSeenAtUtc;
 
     /** 全局唯一的设备编码。 */
     @NotBlank(message = "设备编码不能为空")
@@ -91,6 +99,15 @@
         return cabinetId;
     }
 
+    public Long getAdapterId() { return adapterId; }
+    public void setAdapterId(Long adapterId) { this.adapterId = adapterId; }
+    public Integer getVendorDeviceType() { return vendorDeviceType; }
+    public void setVendorDeviceType(Integer value) { vendorDeviceType = value; }
+    public Integer getVendorDeviceId() { return vendorDeviceId; }
+    public void setVendorDeviceId(Integer value) { vendorDeviceId = value; }
+    public Instant getLastSeenAtUtc() { return lastSeenAtUtc; }
+    public void setLastSeenAtUtc(Instant value) { lastSeenAtUtc = value; }
+
     public void setCabinetId(Long cabinetId)
     {
         this.cabinetId = cabinetId;

--
Gitblit v1.7.1