🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~[api] get:/site/get_area *int:pid=0#上级id(pid=0表示获取顶级) <<< success { "data": [ { "id": 110000, "name": "北京" }, { "id": 450000, "name": "广西壮族自治区" }, { "id": 460000, "name": "海南省" }, { "id": 500000, "name": "重庆" }, { "id": 510000, "name": "四川省" }, { "id": 520000, "name": "贵州省" }, { "id": 530000, "name": "云南省" }, { "id": 540000, "name": "西藏自治区" }, { "id": 610000, "name": "陕西省" }, { "id": 620000, "name": "甘肃省" }, { "id": 630000, "name": "青海省" }, { "id": 640000, "name": "宁夏回族自治区" }, { "id": 650000, "name": "新疆维吾尔自治区" }, { "id": 710000, "name": "台湾" }, { "id": 810000, "name": "香港特别行政区" }, { "id": 820000, "name": "澳门特别行政区" }, { "id": 440000, "name": "广东省" }, { "id": 430000, "name": "湖南省" }, { "id": 420000, "name": "湖北省" }, { "id": 120000, "name": "天津" }, { "id": 130000, "name": "河北省" }, { "id": 140000, "name": "山西省" }, { "id": 150000, "name": "内蒙古自治区" }, { "id": 210000, "name": "辽宁省" }, { "id": 220000, "name": "吉林省" }, { "id": 230000, "name": "黑龙江省" }, { "id": 310000, "name": "上海" }, { "id": 320000, "name": "江苏省" }, { "id": 330000, "name": "浙江省" }, { "id": 340000, "name": "安徽省" }, { "id": 350000, "name": "福建省" }, { "id": 360000, "name": "江西省" }, { "id": 370000, "name": "山东省" }, { "id": 410000, "name": "河南省" }, { "id": 900000, "name": "钓鱼岛" } ], "code": 8888, "msg": "成功!" } ~~~ ## **请求参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |pid|是|int|上级id(pid=0表示获取顶级)| ## **成功发回参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |code|是|int|表示请求后的状态| |msg|是|string|表示请求提示信息| |data|是|object|返回数据| ## **data参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|表示主键id| |name|是|string|表示名称|