文档
测试

城市搜索

GET
http://localhost:8080/city/search/{pageNum}/{pageSize}/{cityName}

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:关键字: %北京%
必填
data
object
数据字典
必填
pageNum
int
示例:1
必填
pageSize
int
示例:5
必填
total
int
示例:1
必填
result
array
数据列表
必填
id
int
示例:155
必填
city
string
示例:北京市
必填
centerLongitude
string
示例:116.407526
必填
centerLatitude
string
示例:39.904030
必填
count
int
示例:234
必填
status
int
示例:1
必填
createTime
string
示例:2020-09-23 16:54:28
必填
updateTime
string
示例:2020-09-25 15:24:35
必填

说明 / 示例

如:http://localhost:8080/city/search/1/5/北京 响应: { "code": 0, "msg": "关键字: %北京%", "data": { "pageNum": 1, "pageSize": 5, "total": 1, "result": [ { "id": 155, "city": "北京市", "centerLongitude": "116.407526", "centerLatitude": "39.904030", "count": 234, "status": 1, "createTime": "2020-09-23 16:54:28", "updateTime": "2020-09-25 15:24:35" } ] } }