查询城市天气信息
GET
/user/v1/getCityInfo
接口描述
查询用户保存城市信息
响应参数
参数名
类型
描述
必填
code
int
返回结果码 1000-成功 非1000-未成功
必填
attentionCities
array
特别关注的城市对象列表
必填
adCode
string
区域代码
必填
cityId
string
城市id
必填
cityZh
string
城市名称
必填
countryZh
string
国家名称
必填
lat
string
纬度
必填
leaderZh
string
上级城市名称
必填
lng
string
经度
必填
provinceZh
string
省份名称
必填
temMax
string
当日最高气温
必填
temMin
string
当日最低气温
必填
type
int
类型 1-定位城市 2-保存城市 3-特别关注城市
必填
wea
string
当前天气情况
必填
weaImg
string
当前天气图标
必填
adCode
string
示例:310110
必填
cityId
string
示例:101021700
必填
cityZh
string
示例:杨浦
必填
countryZh
string
示例:中国
必填
id
int
示例:1676
必填
lat
string
示例:31.270755
必填
leaderZh
string
示例:上海市
必填
lng
string
示例:121.522797
必填
provinceZh
string
示例:上海市
必填
temMax
string
示例:34
必填
temMin
string
示例:27
必填
type
int
示例:1
必填
wea
string
示例:阴
必填
weaImg
string
示例:brokenclouds
必填
cityIds
array
城市id列表
必填
marsFlag
boolean
是否有火星城市
必填
adCode
string
区域id
必填
cityId
string
城市id
必填
cityZh
string
城市名称
必填
countryZh
string
国家名称
必填
date
string
日期
必填
leaderZh
string
上级城市
必填
pressure
string
大气压
必填
provinceZh
string
省份名称
必填
solar
int
太阳日
必填
sunRise
string
日出时间
必填
sunSet
string
日落时间
必填
temMax
string
最高气温
必填
temMin
string
最低气温
必填
temAvg
string
火星表面平均温度
必填
earthDay
string
地球每天时长
必填
marsDay
string
火星每天时长
必填
adCode
string
示例:M0001
必填
cityId
string
示例:M0001
必填
cityZh
string
示例:盖尔环形山(火星)
必填
countryZh
string
示例:火星
必填
date
string
示例:2021-07-20
必填
leaderZh
string
示例:火星
必填
pressure
string
示例:859
必填
provinceZh
string
示例:火星
必填
solar
int
示例:3183
必填
sunRise
string
示例:05:59
必填
sunSet
string
示例:17:42
必填
temMax
string
示例:-79
必填
temMin
string
最低温度
必填
temAvg
string
火星表面平均温度
必填
earthDay
string
地球每天时长
必填
marsDay
string
火星每天时长
必填
message
string
返回结果信息
必填