| | |
| | | |
| | | 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; |
| | |
| | | |
| | | /** 检测柜主键。 */ |
| | | private Long cabinetId; |
| | | |
| | | /** 所属设备适配器实例。 */ |
| | | private Long adapterId; |
| | | |
| | | private Integer vendorDeviceType; |
| | | private Integer vendorDeviceId; |
| | | private Instant lastSeenAtUtc; |
| | | |
| | | /** 全局唯一的设备编码。 */ |
| | | @NotBlank(message = "设备编码不能为空") |
| | |
| | | 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; |