feat: OAuth 密钥编辑时显示到期时间和重新授权按钮

- 后端 EndpointAPIKeyResponse 新增 oauth_expires_at 字段
- 从加密的 auth_config 中解密并提取 OAuth Token 到期时间
- 前端编辑已授权的 OAuth 密钥时显示"重新授权"按钮
- 在按钮旁显示 Token 到期时间
This commit is contained in:
AAEE86
2026-02-04 16:05:25 +08:00
parent cb4407ba49
commit 4c1ec66365
4 changed files with 35 additions and 17 deletions

View File

@@ -247,6 +247,8 @@ export interface EndpointAPIKey {
// 模型过滤规则(仅当 auto_fetch_models=true 时生效)
model_include_patterns?: string[] // 模型包含规则(支持 * 和 ? 通配符)
model_exclude_patterns?: string[] // 模型排除规则(支持 * 和 ? 通配符)
// OAuth 相关
oauth_expires_at?: number | null // OAuth Token 过期时间Unix 时间戳)
}
// 按格式的健康度数据