更新时间:2023-06-15 06:04:55
本文介绍按层级查询子空间的 API。
按层级查询子空间。
GET: /v1.0/iot-02/community/space-tree
| 参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
|---|---|---|---|---|
| block_id | String | query | true | 小区 ID |
| meta_code | String | query | true | 空间类型。
|
| 参数名 | 类型 | 说明 |
|---|---|---|
| result | List | 子空间列表 |
result 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| tree_id | String | 空间节点 ID |
| parent_tree_id | String | 父节点空间 ID |
| full_value | String | 全称 |
| value | String | 值 |
| meta_code | String | 空间类型 |
| children | List | 空间列表 |
GET: /v1.0/iot-02/community/space-tree?block_id=137209008403933xxxx
{
"tree_id": "136767399153950xxxx",
"full_value": "1幢",
"children": [
{
"tree_id": "136711399153950xxxx",
"full_value": "0",
"parent_tree_id": "136767399153950xxxx",
"meta_code": "unit",
"value": "1单元"
}
],
"parent_tree_id": "136767399153910xxxx",
"meta_code": "building",
"value": "1幢"
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈