文档
测试

根据pid获取地点

GET
/api/district/getbypid

接口描述

根据父id获取地区信息

请求参数

参数名
类型
描述
必填
pid
string
父id,如果为空则表示获取顶级省
可选

响应参数

参数名
类型
描述
必填
code
int
0
必填
message
string
null
必填
data
array
数组集合
必填
value
string
地区的id
必填
label
string
地区的组合:广东,深圳,宝安,石岩
必填
children
bool
是否有下一级
必填