双重预防项目-国泰新华二开定制版
SZH
2022-08-20 f9f0687195e0fe349185437d22c495d74c8d4a20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
package com.ruoyi.project.tool.weather.dto;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
 
import java.io.Serializable;
import java.util.*;
 
/**
 * 开发公司:SOJSON在线工具 <p>
 * 版权所有:© www.sojson.com<p>
 * 博客地址:http://www.sojson.com/blog/  <p>
 * <p>
 * 高级天气API 返回实体   (15天)
 * <p>
 * 区分 责任人 日期    说明<br/>
 * 创建 周柏成 2017年08月23日 23:10  <br/>
 *
 * @author zhou-baicheng
 * @version 1.0<br/>
 * @email so@sojson.com
 */
@lombok.Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WeatherDto implements Serializable {
 
 
 
 
 
 
    private String message;
    private int status;
    //第一天时间
    private String date;
    private String time;
    //当前主题信息
    private CityInfo cityInfo;
 
    private WeatherData data;
 
 
    public boolean isSuccess(){
        return this.status == 200;
    }
    /**
     * 当前城市信息
     */
    @lombok.Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class CityInfo implements Serializable {
        //城市name 如 茶陵
        private String city;
        //城市id
        private String citykey;
        //父级城市,比如市级,省级
        private String parent;
        //更新时间
        private String updateTime;
 
 
    }
    //限号的城市
    private List<Xianhao> xianhao = new ArrayList<>();
    @lombok.Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Xianhao  implements Serializable {
        private String date;//日期
        private String number;//限制的车牌号码3,8
        private String cityId;//城市ID
        private String title;//标题 :限制
 
 
 
    }
 
 
 
    ///////////////////////////  天气主体信息 ///////////////////////////////////
    @lombok.Data
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class WeatherData  implements Serializable{
 
        //兼容字段
        private String shidu;
        private Double pm25;
        private Double pm10;
        private String quality;
        private String wendu;
        private String ganmao;
 
 
      
 
 
 
 
        //空气质量
        private AirQuality air;
        //当天天气其他说明
        private Expand expand;
 
        //各种指数
        private List<Index> indexes = new ArrayList<>();
 
        //15天天气预报
        //限号的城市
 
        private List<Forecast> forecast = new ArrayList<>();
 
 
        //昨天,从forecast取一条放到 yesterday
        private Forecast yesterday;
 
        //24小时天气
        private List<Hour> hour24 = new ArrayList<>();
 
 
        //空气质量相关evn
        @lombok.Data
        public static class AirQuality  implements Serializable {
            private String no2;
            private String mp;
            private String pm25;
            private String o3;
            private String so2;
            private String aqi;
            private String pm10;
            private String suggest;//如:各类人群可自由活动",
            private String time;//更新时间":"22:00:00",
            private String co;
            private String quality;//":"优"
        }
 
 
        /**
         * 当天天气拓展
         */
        @lombok.Data
        @JsonInclude(JsonInclude.Include.NON_NULL)
        public static class Expand  implements Serializable {
            /**
             * 湿度
             */
            private String humidity;
            /**
             * 天气
             */
            private String weather;
            //天气类型  如:2
            private Integer weatherType;
            //更新时间
            private String updateTime;
            //体感温度
            private String stemp;
            //风速
            private String windPower;
            //风向
            private String windDirection;
 
        }
 
 
 
 
        /**
         * 小时天气
         */
        @lombok.Data
        public static class Hour  implements Serializable {
            /**
             * 温度
             */
            private Integer temperature;
            /**
             * 湿度
             */
            private String humidity;
            //风速
            private String windPower;
            //风向
            private String windDirection;
            private String weather;
            //天气类型  如:2
            private Integer weatherType;
            //时间 如:201708241900
            private String time;
 
 
        }
 
 
        /**
         * 天气预报,一天
         */
        @lombok.Data
        @JsonInclude(JsonInclude.Include.NON_NULL)
        public static class Forecast implements Serializable {
 
            //日期
            private String date;
            //最高温度,最低温度
            private String high;
            private String low;
            private String ymd;
            private String week;
            //日出 & 日落
            private String sunrise;
            private String sunset;
            //空气质量
            private Integer aqi;
            //白天天气
            private Day day;
            //晚上天气
            private Day night;
 
 
 
            //兼容字段
            //风向
            private String fx;
            //风力
            private String fl;
            //天气类型
            private String type;
            private String notice;
 
 
 
        }
 
        //白天 & 晚上 天气描述
        @lombok.Data
        @JsonInclude(JsonInclude.Include.NON_NULL)
        public static class Day implements Serializable {
            //风速
            private String windPower;
            //风向
            private String windDirection;
 
            //公告    如:"悠悠的云里有淡淡的诗"
            private String notice;
            //天气描述  如:多云
            private String weather;
 
 
 
 
        }
 
 
 
 
 
        /**
         * 各种指数
         */
        @lombok.Data
        @JsonInclude(JsonInclude.Include.NON_NULL)
        public static class Index  implements Serializable {
            //指数图标
            private String icon;
            //指数值          如:较适宜
            private String value;
            //指数名称
            private String name;
            //指数简单描述    如:较适宜晨练
            private String tips;
            //指数详细描述
            private String description;
 
 
 
 
        }
 
 
    }
 
 
 
 
}