From 5bf9f5cc0ad2689de4e34d628d8ac3168df5142a Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 23 八月 2024 17:41:41 +0800
Subject: [PATCH] 修复编译bug
---
vo/ape.go | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/vo/ape.go b/vo/ape.go
index f45c289..d820256 100644
--- a/vo/ape.go
+++ b/vo/ape.go
@@ -6,8 +6,9 @@
"errors"
)
+// 鐩存帴娉ㄥ唽鐨勯噰闆嗚澶�, 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"`
@@ -56,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