重构代码结构,优化连接管理和日志记录
This commit is contained in:
20
server/web/models/channel.go
Normal file
20
server/web/models/channel.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// Channel 连接认证模型
|
||||
type Channel struct {
|
||||
gorm.Model
|
||||
UserId uint
|
||||
NodeId uint
|
||||
Protocol string
|
||||
Username string
|
||||
Password string
|
||||
AuthIp bool
|
||||
AuthPass bool
|
||||
Expiration time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user