feat: 缓存代理keys

This commit is contained in:
tbphp
2025-07-24 21:53:00 +08:00
parent abb8fa1d19
commit c421123ab6
8 changed files with 38 additions and 9 deletions

View File

@@ -58,6 +58,9 @@ type Group struct {
LastValidatedAt *time.Time `json:"last_validated_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
// For cache
ProxyKeysMap map[string]struct{} `gorm:"-" json:"-"`
}
// APIKey 对应 api_keys 表