@931876502
2016-03-30T03:23:46.000000Z
字数 3661
阅读 513
aladinApi
版本号:
0.0.1部门:
研发部岗位:
服务端开发人员姓名:
杨松建立日期:
2016-2-18更新日期:
2016-2-23 10:35
省份和城市名称citycode:城市编码GET {{HOSTNAME}}/api/weather/getweather/{省份}/{城市},如浙江是省份参数,杭州是城市名称参数{{HOSTNAME}}/api/weather/getweather/{citycode},citycode是城市编码,如:CN101210101json
{"data": {"forecast": [{"cityCode": "CN101210101","tempMax": "9","tempMin": "1","type1": "多云","type2": "多云","updateTime": "2016-02-24 11:22:43","wthDate": "2016-02-24 00:00:00","wthIcon": "wi-day-cloudy","wthId": 1},{"cityCode": "CN101210101","tempMax": "12","tempMin": "4","type1": "多云","type2": "阴","updateTime": "2016-02-24 11:22:43","wthDate": "2016-02-25 00:00:00","wthIcon": "wi-day-cloudy","wthId": 2},{"cityCode": "CN101210101","tempMax": "14","tempMin": "5","type1": "阴","type2": "多云","updateTime": "2016-02-24 11:22:43","wthDate": "2016-02-26 00:00:00","wthIcon": "wi-day-windy","wthId": 3},{"cityCode": "CN101210101","tempMax": "17","tempMin": "5","type1": "阴","type2": "多云","updateTime": "2016-02-24 11:22:43","wthDate": "2016-02-27 00:00:00","wthIcon": "wi-day-windy","wthId": 4},{"cityCode": "CN101210101","tempMax": "16","tempMin": "4","type1": "多云","type2": "多云","updateTime": "2016-02-24 11:22:43","wthDate": "2016-02-28 00:00:00","wthIcon": "wi-day-cloudy","wthId": 5},{"cityCode": "CN101210101","tempMax": "16","tempMin": "5","type1": "晴","type2": "晴","updateTime": "2016-02-24 11:22:43","wthDate": "2016-02-29 00:00:00","wthIcon": "wi-day-sunny","wthId": 6},{"cityCode": "CN101210101","tempMax": "20","tempMin": "5","type1": "晴","type2": "晴","updateTime": "2016-02-24 11:22:43","wthDate": "2016-03-01 00:00:00","wthIcon": "wi-day-sunny","wthId": 7}]},"err": "nothing","msg": "success","re": {},"reErr": {},"statusNo": 200}
forecast:未来七天天气预报 wthId:天气代码cityCode: 城市编码wthDate: 天气日期 tempMax: 最高温度tempMin: 最低温度type1: 天气类型1 type2: 天气类型2 wthIcon: 天气图标updateTime:更新时间all:更新所有hotel_info表中所有城市天气citycode:根据城市编码更新单个城市天气GET {{HOSTNAME}}/api/weather/refresh/{all},all是参数{{HOSTNAME}}/api/weather/refresh/{citycode},citycode是城市编码 如:CN101210101json
{"data": "恭喜你!共2个城市天气更新已完成!","err": "nothing","msg": "success","re": {},"reErr": {},"statusNo": 200}
{"data": {"updateData": [{"cityCode": "CN101210101","tempMax": "13","tempMin": "4","type1": "多云","type2": "多云","updateTime": "2016-02-25 15:43:04","wthDate": "2016-02-25 00:00:00","wthIcon": "wi-day-cloudy","wthId": 1},{"cityCode": "CN101210101","tempMax": "14","tempMin": "6","type1": "阴","type2": "多云","updateTime": "2016-02-25 15:43:04","wthDate": "2016-02-26 00:00:00","wthIcon": "wi-day-windy","wthId": 2},{"cityCode": "CN101210101","tempMax": "18","tempMin": "8","type1": "多云","type2": "多云","updateTime": "2016-02-25 15:43:04","wthDate": "2016-02-27 00:00:00","wthIcon": "wi-day-cloudy","wthId": 3},{"cityCode": "CN101210101","tempMax": "19","tempMin": "6","type1": "多云","type2": "阴","updateTime": "2016-02-25 15:43:04","wthDate": "2016-02-28 00:00:00","wthIcon": "wi-day-cloudy","wthId": 4},{"cityCode": "CN101210101","tempMax": "12","tempMin": "3","type1": "多云","type2": "晴","updateTime": "2016-02-25 15:43:04","wthDate": "2016-02-29 00:00:00","wthIcon": "wi-day-cloudy","wthId": 5},{"cityCode": "CN101210101","tempMax": "14","tempMin": "6","type1": "晴","type2": "多云","updateTime": "2016-02-25 15:43:04","wthDate": "2016-03-01 00:00:00","wthIcon": "wi-day-sunny","wthId": 6},{"cityCode": "CN101210101","tempMax": "17","tempMin": "9","type1": "晴","type2": "阴","updateTime": "2016-02-25 15:43:04","wthDate": "2016-03-02 00:00:00","wthIcon": "wi-day-sunny","wthId": 7}]},"err": "nothing","msg": "success","re": {},"reErr": {},"statusNo": 200}
forecast:未来七天天气预报 wthId:天气代码cityCode: 城市编码wthDate: 天气日期 tempMax: 最高温度tempMin: 最低温度type1: 天气类型1 type2: 天气类型2 wthIcon: 天气图标updateTime:更新时间