移除不必要的 user_host 字段及相关索引;优化通道缓存方式,直接缓存通道授权信息

This commit is contained in:
2025-05-12 17:04:20 +08:00
parent 2c37dcc2be
commit 2be1a18e91
5 changed files with 43 additions and 68 deletions

View File

@@ -23,7 +23,6 @@ type Channel struct {
NodeHost string `gorm:"column:node_host;comment:节点地址" json:"node_host"` // 节点地址
Protocol int32 `gorm:"column:protocol;comment:协议类型1-http2-https3-socks5" json:"protocol"` // 协议类型1-http2-https3-socks5
AuthIP bool `gorm:"column:auth_ip;not null;comment:IP认证" json:"auth_ip"` // IP认证
UserHost string `gorm:"column:user_host;comment:用户地址" json:"user_host"` // 用户地址
AuthPass bool `gorm:"column:auth_pass;not null;comment:密码认证" json:"auth_pass"` // 密码认证
Username string `gorm:"column:username;comment:用户名" json:"username"` // 用户名
Password string `gorm:"column:password;comment:密码" json:"password"` // 密码