eden-basic/docs/树形接口.json
zhongchangyuyu fde29b7072 资源管理
2025-04-23 15:58:01 +08:00

147 lines
3.2 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"info": {
"_postman_id": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6",
"name": "项目树形结构接口",
"description": "获取项目、楼宇、楼层和房源的树形结构数据",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "获取项目树形结构",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{baseUrl}}/api/project-tree?level=4",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"project-tree"
],
"query": [
{
"key": "level",
"value": "4",
"description": "查询层级1-项目2-楼宇3-楼层4-房源"
}
]
},
"description": "查询所有项目及其下属的楼宇、楼层和房源信息,以树形结构返回"
},
"response": [
{
"name": "成功响应",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/project-tree?level=4"
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": [
{
"id": "P001",
"projectName": "科技园区",
"projectType": "产业园区",
"buildings": [
{
"id": "B001",
"buildingName": "A栋",
"buildingCode": "A",
"floors": [
{
"id": "F001",
"floorName": "1层",
"floorNumber": 1,
"rooms": [
{
"id": "R001",
"roomNumber": "101",
"roomType": "办公",
"roomStatus": "待租",
"buildingArea": 100.00,
"rentalArea": 90.00
},
{
"id": "R002",
"roomNumber": "102",
"roomType": "办公",
"roomStatus": "已租",
"buildingArea": 120.00,
"rentalArea": 110.00
}
]
},
{
"id": "F002",
"floorName": "2层",
"floorNumber": 2,
"rooms": [
{
"id": "R003",
"roomNumber": "201",
"roomType": "办公",
"roomStatus": "待租",
"buildingArea": 150.00,
"rentalArea": 140.00
}
]
}
]
}
]
}
]
},
{
"name": "错误响应",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/project-tree?level=4"
}
},
"status": "Internal Server Error",
"code": 500,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"code": 500,
"message": "服务器内部错误",
"timestamp": "2024-04-14T10:00:00.000+0000"
}
}
]
}
],
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:8080",
"type": "string"
}
]
}