Agent 页面 → API 映射
httpClient baseURL=/api。字段见 backend/api.md。
authApi
| 函数 |
Method |
Path |
页面 |
| sendCode |
POST |
/auth/send-code |
Login |
| login |
POST |
/auth/login(as_agent=true) |
Login / AuthProvider |
| getMe |
GET |
/auth/me |
AuthProvider |
agentApi
| 函数 |
Method |
Path |
页面 |
| registerAgent |
POST |
/agents/register |
AgentRegister(无路由) |
| getAgentMe |
GET |
/agents/me |
Links / Settings |
| updateCommissionRate |
PUT |
/agents/me/commission-rate |
Settings |
| getDashboard |
GET |
/agents/me/dashboard |
Dashboard |
| getCustomers |
GET |
/agents/me/customers |
Customers |
| getCustomerDetail |
GET |
/agents/me/customers/{id} |
CustomerDetail |
| getTransactions |
GET |
/agents/me/transactions |
Transactions |
| getCommissions |
GET |
/agents/me/commissions |
Commissions |
| getLanding |
GET |
/landing/{code} |
已定义未使用 |
| bindCustomer |
POST |
/landing/{code}/bind |
Login(残留路径) |
settlementApi
| 函数 |
Method |
Path |
页面 |
| getSettlementStatus |
GET |
/settlement/status |
Settlement |
| createAlipayScan / createWechatScan |
POST |
/settlement/scan/alipay\|wechat |
Settlement |
| getScanStatus |
GET |
/settlement/scan/{token}/status |
QRScanCard |
| mockConfirmScan |
POST |
/settlement/scan/{token}/mock-confirm |
QRScanCard |
| submitMerchantInfo |
POST |
/settlement/merchant-info |
Settlement |
exportApi(blob)
| 函数 |
Path |
页面 |
| exportCustomers |
GET /export/customers |
Customers |
| exportTransactions |
GET /export/transactions |
Transactions |
| exportCommissions |
GET /export/commissions |
Commissions |
| exportSummary |
GET /export/summary |
Settings |
未接入(后端有)
/billing/* 提现、Admin 审批相关 — 见 Admin / Backend 文档。