From 6f26cb4297ebaab4394e05e1a498e347ce290bb5 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期四, 22 八月 2024 19:36:28 +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