From 25dbc87a7390cb991d7a9541f5b84e9140003710 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Thu, 13 Mar 2025 10:36:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8E=88=E6=9D=83=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E7=9B=B8=E5=85=B3=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmii-uav-watchdog/models/auth_model.go | 27 -------------------------- 1 file changed, 27 deletions(-) delete mode 100644 cmii-uav-watchdog/models/auth_model.go diff --git a/cmii-uav-watchdog/models/auth_model.go b/cmii-uav-watchdog/models/auth_model.go deleted file mode 100644 index a96fee1..0000000 --- a/cmii-uav-watchdog/models/auth_model.go +++ /dev/null @@ -1,27 +0,0 @@ -package models - -import "time" - -// AuthorizationFile 授权文件模型 -type AuthorizationFile struct { - EncryptedHosts []string `json:"encrypted_hosts"` // 加密后的主机信息列表 - TOTPCode string `json:"totp_code"` // TOTP验证码 - CurrentTime time.Time `json:"current_time"` // 当前系统时间 - FirstAuthTime time.Time `json:"first_auth_time"` // 初次授权时间 - TimeOffset int64 `json:"time_offset"` // 授权时间偏移 -} - -// AuthorizationCode 授权码模型 -type AuthorizationCode struct { - TOTPCode string `json:"totp_code"` // TOTP验证码 - CurrentTime time.Time `json:"current_time"` // 当前系统时间 - EncryptedHosts []string `json:"encrypted_hosts"` // 授权主机的加密字符串列表 -} - -// AuthorizationStorage 授权存储信息 -type AuthorizationStorage struct { - EncryptedCode string `json:"encrypted_code"` // 加密后的授权码 - FirstAuthTime time.Time `json:"first_auth_time"` // 初次授权时间 - TimeOffset int64 `json:"time_offset"` // 授权时间偏移 - AuthorizedHosts []string `json:"authorized_hosts"` // 已授权主机列表 -}