tenant: add member management APIs

This commit is contained in:
2025-12-18 17:29:17 +08:00
parent 5029234e47
commit de574bbd9d
11 changed files with 815 additions and 14 deletions

View File

@@ -151,3 +151,23 @@ Authorization: Bearer {{ token }}
"reason": "联调充值",
"idempotency_key": "topup-{{ topupUserID }}-001"
}
### Tenant Admin - Join a user to tenant (add member)
@joinUserID = 3
POST {{ host }}/t/{{ tenantCode }}/v1/admin/users/{{ joinUserID }}/join
Content-Type: application/json
Authorization: Bearer {{ token }}
### Tenant Admin - Set member role
PATCH {{ host }}/t/{{ tenantCode }}/v1/admin/users/{{ joinUserID }}/role
Content-Type: application/json
Authorization: Bearer {{ token }}
{
"role": "tenant_admin"
}
### Tenant Admin - Tenant members list
GET {{ host }}/t/{{ tenantCode }}/v1/admin/users?page=1&limit=20
Content-Type: application/json
Authorization: Bearer {{ token }}