77 lines
2.5 KiB
JSON
77 lines
2.5 KiB
JSON
{
|
|
"client": "Thunder Client",
|
|
"collectionName": "Tenant Hierarchy APIs",
|
|
"dateExported": "2025-09-18",
|
|
"version": "1.1",
|
|
"folders": [],
|
|
"requests": [
|
|
{
|
|
"name": "获取可访问租户树",
|
|
"url": "{{baseUrl}}/tenant/accessible",
|
|
"method": "GET",
|
|
"headers": [ { "name": "Authorization", "value": "Bearer {{token}}" } ],
|
|
"params": []
|
|
},
|
|
{
|
|
"name": "切换当前查询租户",
|
|
"url": "{{baseUrl}}/tenant/switch",
|
|
"method": "POST",
|
|
"headers": [ { "name": "Authorization", "value": "Bearer {{token}}" } ],
|
|
"params": [ { "name": "tenantId", "value": "{{tenantId}}" } ]
|
|
},
|
|
{
|
|
"name": "层级-租户列表(分页)",
|
|
"url": "{{baseUrl}}/tenant/hierarchy/list",
|
|
"method": "GET",
|
|
"headers": [ { "name": "Authorization", "value": "Bearer {{token}}" } ],
|
|
"params": [
|
|
{ "name": "page", "value": "1" },
|
|
{ "name": "size", "value": "10" }
|
|
]
|
|
},
|
|
{
|
|
"name": "层级-租户详情",
|
|
"url": "{{baseUrl}}/tenant/hierarchy/detail/{{tenantId}}",
|
|
"method": "GET",
|
|
"headers": [ { "name": "Authorization", "value": "Bearer {{token}}" } ],
|
|
"params": []
|
|
},
|
|
{
|
|
"name": "层级-创建租户",
|
|
"url": "{{baseUrl}}/tenant/hierarchy/create",
|
|
"method": "POST",
|
|
"headers": [
|
|
{ "name": "Authorization", "value": "Bearer {{token}}" },
|
|
{ "name": "Content-Type", "value": "application/json" }
|
|
],
|
|
"body": "{\n \"tenantId\": \"t_1001\",\n \"tenantName\": \"演示租户\",\n \"parentTenantId\": \"root\",\n \"tenantType\": \"COMPANY\",\n \"status\": 1\n}"
|
|
},
|
|
{
|
|
"name": "层级-更新租户",
|
|
"url": "{{baseUrl}}/tenant/hierarchy/update",
|
|
"method": "PUT",
|
|
"headers": [
|
|
{ "name": "Authorization", "value": "Bearer {{token}}" },
|
|
{ "name": "Content-Type", "value": "application/json" }
|
|
],
|
|
"body": "{\n \"tenantId\": \"t_1001\",\n \"tenantName\": \"演示租户-更新\",\n \"status\": 1\n}"
|
|
},
|
|
{
|
|
"name": "层级-删除租户",
|
|
"url": "{{baseUrl}}/tenant/hierarchy/delete",
|
|
"method": "DELETE",
|
|
"headers": [ { "name": "Authorization", "value": "Bearer {{token}}" } ],
|
|
"params": [ { "name": "tenantId", "value": "{{tenantId}}" } ]
|
|
}
|
|
],
|
|
"settings": {
|
|
"envId": "default",
|
|
"variables": [
|
|
{ "name": "baseUrl", "value": "http://localhost:8080" },
|
|
{ "name": "token", "value": "" },
|
|
{ "name": "tenantId", "value": "t_1001" }
|
|
]
|
|
}
|
|
}
|
|
|