文档
测试

查询已经保存的城市信息

GET
/user/v1/getCityInfo

接口描述

查询保存的城市信息

请求头

参数名
类型
描述
必填
ACCESSTOKEN
string
登录时返回的用户ppId
必填

响应参数

参数名
类型
描述
必填
code
int
返回结果码 1000-成功 非1000-未成功
必填
message
string
返回结果信息
必填
data
array<object>
城市天气信息对象列表
必填
cityIds
array<string>
保存的城市id列表
必填
cities
array<object>
添加的城市列表
必填
cityId
string
城市id
必填
cityZh
string
城市名称
必填
provinceZh
string
省份名称
必填
countryZh
string
国家名称
必填
leaderZh
string
上级城市
必填
lng
string
经度
必填
lat
string
纬度
必填
weaImg
string
天气图标
必填
wea
string
天气文字描述
必填
tem
string
温度
必填
temMax
string
最高气温
必填
temMin
string
最低气温
必填
adCode
string
所属区域代码
必填
positionCities
array<object>
定位城市列表
必填
cityId
string
城市id
必填
cityZh
string
城市名称
必填
provinceZh
string
省份名称
必填
countryZh
string
国家名称
必填
leaderZh
string
上级城市名称
必填
adCode
string
区域代码
必填
lng
string
经度
必填
lat
string
纬度
必填
weaImg
string
天气图标
必填
wea
string
天气描述
必填
tem
string
温度
必填
temMax
string
最高气温
必填
temMin
string
最低气温
必填