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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user