tenant: admin batch topup

This commit is contained in:
2025-12-19 13:55:20 +08:00
parent 86a1a0a2cc
commit 17d51d5ed2
11 changed files with 771 additions and 3 deletions

View File

@@ -180,6 +180,27 @@ Authorization: Bearer {{ token }}
"idempotency_key": "topup-{{ topupUserID }}-001"
}
### Tenant Admin - Batch topup users
POST {{ host }}/t/{{ tenantCode }}/v1/admin/users/topup/batch
Content-Type: application/json
Authorization: Bearer {{ token }}
{
"batch_idempotency_key": "batch-topup-001",
"items": [
{
"user_id": 2,
"amount": 1000,
"reason": "批量充值-1"
},
{
"user_id": 3,
"amount": 2000,
"reason": "批量充值-2"
}
]
}
### Tenant Admin - Join a user to tenant (add member)
@joinUserID = 3
POST {{ host }}/t/{{ tenantCode }}/v1/admin/users/{{ joinUserID }}/join