多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 接口地址:area/lists 请求方式:POST # 返回结果 | 字段名称 | 字段类型 | 字段描述 | |------|------|-------| | id | int | ID | | name| string| 地区名称 | | pid| int|父亲id,为0则是根节点 | | pids| string| 所有父级id格式: 0,xx,xx, | | grade| int| 嵌套等级0=市 1=区/县 2=街道 3=社区 | | sort| int| 排序值| # 返回示例 ``` { "code": 0, "message": "请求成功", "data": [ { "id": 1, "name": "重庆", "pid": 0, "pids": "0,", "grade": 0, "sort": 999999 }, { "id": 2, "name": "万州", "pid": 1, "pids": "0,1,", "grade": 1, "sort": 999999 }, { "id": 3, "name": "高笋塘街道", "pid": 2, "pids": "0,1,2,", "grade": 2, "sort": 999999 }, { "id": 4, "name": "东方广场社区", "pid": 3, "pids": "0,1,2,3,", "grade": 3, "sort": 999999 }, { "id": 5, "name": "西山路社区", "pid": 3, "pids": "0,1,2,3,", "grade": 3, "sort": 999999 }, { "id": 6, "name": "王家坡社区", "pid": 3, "pids": "0,1,2,3,", "grade": 3, "sort": 999999 }, { "id": 7, "name": "甘家院社区", "pid": 3, "pids": "0,1,2,3,", "grade": 3, "sort": 999999 }, { "id": 8, "name": "太白路社区", "pid": 3, "pids": "0,1,2,3,", "grade": 3, "sort": 999999 }, { "id": 9, "name": "苗圃社区", "pid": 3, "pids": "0,1,2,3,", "grade": 3, "sort": 999999 }, { "id": 10, "name": "望江路社区", "pid": 3, "pids": "0,1,2,3,", "grade": 3, "sort": 999999 } ] } ```