🎨定时任务掉了
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-12-27 11:50:52 +08:00
parent 904907f796
commit 36f0202c57
2 changed files with 2 additions and 17 deletions

View File

@ -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() {

View File

@ -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"
}