企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~[api] get:/base/region/tree <<< success { "code": 0, "msg": "获取成功", "data": [ { "id": 1, "name": "北京市", "children": [ { "id": 2, "name": "市辖区", "children": [ { "id": 3, "name": "东城区", "children": [] }, { "id": 21, "name": "西城区", "children": [] }, { "id": 37, "name": "朝阳区", "children": [] }, { "id": 81, "name": "丰台区", "children": [] }, { "id": 103, "name": "石景山区", "children": [] }, { "id": 113, "name": "海淀区", "children": [] }, { "id": 143, "name": "门头沟区", "children": [] }, { "id": 157, "name": "房山区", "children": [] }, { "id": 186, "name": "通州区", "children": [] }, { "id": 204, "name": "顺义区", "children": [] }, { "id": 230, "name": "昌平区", "children": [] }, { "id": 253, "name": "大兴区", "children": [] }, { "id": 280, "name": "怀柔区", "children": [] }, { "id": 298, "name": "平谷区", "children": [] }, { "id": 317, "name": "密云区", "children": [] }, { "id": 339, "name": "延庆区", "children": [] } ] } ] } ] } ~~~ ## 返回字段 | 字段 | 说明 | | --- | --- | | id | 区域ID | | region_id | 上级区域ID | | name | 区域名称 |