From 36f0202c57e2e1b4e1bbadd03c66a6b8a1b27c64 Mon Sep 17 00:00:00 2001 From: coward Date: Fri, 27 Dec 2024 11:50:52 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=8E=89=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 3 ++- model/oauth_client.go | 16 ---------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 model/oauth_client.go diff --git a/main.go b/main.go index d69e536..0261c36 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "sort" "time" tui "wireguard-ui/cli" + "wireguard-ui/cron" "wireguard-ui/http" "wireguard-ui/initialize" "wireguard-ui/script" @@ -18,7 +19,7 @@ func init() { if err := script.New().Do(); err != nil { log.Errorf("执行脚本失败: %v", err.Error()) } - + cron.Task() } func main() { diff --git a/model/oauth_client.go b/model/oauth_client.go deleted file mode 100644 index 89674ee..0000000 --- a/model/oauth_client.go +++ /dev/null @@ -1,16 +0,0 @@ -package model - -// AuthClient -// @description: 认证客户端 -type AuthClient struct { - Base - Name string `json:"name" gorm:"type:varchar(255);not null;comment: '客户端名称'"` - ClientID string `json:"clientID" gorm:"type:varchar(255);not null;comment: '客户端ID'"` - ClientKey string `json:"clientKey" gorm:"type:varchar(255);not null;comment: '客户端key'"` - ExpireAt string `json:"expireAt" gorm:"type:varchar(255);not null;comment: '过期时间'"` - IsEnabled int `json:"isEnabled" gorm:"type:int(1);not null;comment: '是否启用'"` -} - -func (AuthClient) TableName() string { - return "t_oauth_client" -}