保存代理源;代理池在运行时后台刷新加载新代理。
(payload: ProxyPoolSourcesRequest)
| 114 | |
| 115 | |
| 116 | @router.post("/api/accounts/{account_id}/payments/preview/seed") |
| 117 | def seed_preview_payment(account_id: str, payload: PreviewSeedRequest): |
| 118 | return success(payment_service.seed_preview(account_id, payload)) |
| 119 | |
| 120 | |
| 121 | @router.post("/api/accounts/{account_id}/payments/qr") |
| 122 | def create_qr(account_id: str, payload: CreateQrRequest): |
| 123 | return success(payment_service.create_qr(account_id, payload)) |
| 124 | |
| 125 | |
| 126 | @router.post("/api/accounts/{account_id}/run") |
| 127 | def run_payment_flow(account_id: str): |
| 128 | from app.services.scheduler_service import get_scheduler_service |
| 129 | |
| 130 | return success(get_scheduler_service().start_account_flow(account_id, source="manual")) |
| 131 | |
| 132 | |
| 133 | @router.post("/api/accounts/{account_id}/pause") |
| 134 | def pause_account_flow(account_id: str): |
| 135 | from app.services.scheduler_service import get_scheduler_service |
nothing calls this directly
no test coverage detected