From 6dea379dc74a941a83c2e5582963c0e58e6ca5bf Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 23 八月 2024 18:32:10 +0800
Subject: [PATCH] 修改楼层解析, 添加老版本兼容
---
vo/ape.go | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/vo/ape.go b/vo/ape.go
index d825df7..d820256 100644
--- a/vo/ape.go
+++ b/vo/ape.go
@@ -8,7 +8,7 @@
// 鐩存帴娉ㄥ唽鐨勯噰闆嗚澶�, Device鍖呭惈杩欎簺璁惧, 鍒嗗紑瀛樺彧鏄负浜嗙骇鑱斾笂鎶�
type Ape struct {
- ApeID string `json:"ApeID"`
+ ApeID string `json:"ApeID" binding:"required"`
Name string `json:"Name"`
Model string `json:"Model"`
IPAddr string `json:"IPAddr"`
@@ -57,3 +57,13 @@
type NotificationApeList struct {
APEObject []Ape `json:"APEObject"`
}
+
+type ApeStatus struct {
+ ApeID string `json:"ApeID" binding:"required"`
+ IsOnline string `json:"IsOnline" binding:"required"`
+ CurrentTime string `json:"CurrentTime" binding:"required"`
+}
+
+type NotificationApeStatusList struct {
+ APEStatusObject []ApeStatus `json:"APEStatusObject"`
+}
--
Gitblit v1.8.0