feat: Implement SQLite database for team owner management, configuration, batch processing, and proxies, introducing new auto-add API and Accounts UI.

This commit is contained in:
2026-02-03 06:54:40 +08:00
parent b20399a00a
commit f2757cf313
3 changed files with 120 additions and 6 deletions

View File

@@ -943,6 +943,12 @@ func (d *DB) DeleteCodexProxy(id int64) error {
return err
}
// ClearCodexProxies 清空所有代理
func (d *DB) ClearCodexProxies() error {
_, err := d.db.Exec("DELETE FROM codex_auth_proxies")
return err
}
// GetCodexProxyByID 获取指定 ID 的代理地址
func (d *DB) GetCodexProxyByID(id int64) (string, error) {
var proxyURL string