From b6a58d736e89273624ec9aa8be30ee32a91bb957 Mon Sep 17 00:00:00 2001 From: tqzhang <2452618307@qq.com> Date: Tue, 7 May 2024 16:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20src/main/java/com/bonus/au?= =?UTF-8?q?toweb/UI/entity/WeatherData.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bonus/autoweb/UI/entity/WeatherData.java | 117 ------------------ 1 file changed, 117 deletions(-) delete mode 100644 src/main/java/com/bonus/autoweb/UI/entity/WeatherData.java diff --git a/src/main/java/com/bonus/autoweb/UI/entity/WeatherData.java b/src/main/java/com/bonus/autoweb/UI/entity/WeatherData.java deleted file mode 100644 index ecb6bc5..0000000 --- a/src/main/java/com/bonus/autoweb/UI/entity/WeatherData.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.bonus.autoweb.UI.entity; - -import com.google.gson.annotations.SerializedName; -import lombok.Data; - -/** - * FileName: WeatherData - * - * @author tqzhang - * Date: 2024/4/9 14:11 - * Description:天气 - */ -@Data -public class WeatherData { - private int code; - private WeatherDataChild data; - - public static class WeatherDataChild { - private int page; - private int rows; - private String city; - @SerializedName("weather12") // 使用注解指定 JSON 中的字段名 - private String weatherNoon; - @SerializedName("weather24") // 使用注解指定 JSON 中的字段名 - private String weatherNight; - @SerializedName("temperature1") // 使用注解指定 JSON 中的字段名 - private String minTemperature; - @SerializedName("temperature2") // 使用注解指定 JSON 中的字段名 - private String maxTemperature; - private String rectime; - - public int getPage() { - return page; - } - - public void setPage(int page) { - this.page = page; - } - - public int getRows() { - return rows; - } - - public void setRows(int rows) { - this.rows = rows; - } - - public String getCity() { - return city; - } - - public void setCity(String city) { - this.city = city; - } - - public String getWeatherNoon() { - return weatherNoon; - } - - public void setWeatherNoon(String weatherNoon) { - this.weatherNoon = weatherNoon; - } - - public String getWeatherNight() { - return weatherNight; - } - - public void setWeatherNight(String weatherNight) { - this.weatherNight = weatherNight; - } - - public String getMinTemperature() { - return minTemperature; - } - - public void setMinTemperature(String minTemperature) { - this.minTemperature = minTemperature; - } - - public String getMaxTemperature() { - return maxTemperature; - } - - public void setMaxTemperature(String maxTemperature) { - this.maxTemperature = maxTemperature; - } - - public String getRectime() { - return rectime; - } - - public void setRectime(String rectime) { - this.rectime = rectime; - } - - @Override - public String toString() { - return "WeatherDataChild{" + - "page=" + page + - ", rows=" + rows + - ", city='" + city + '\'' + - ", weatherNoon='" + weatherNoon + '\'' + - ", weatherNight='" + weatherNight + '\'' + - ", minTemperature='" + minTemperature + '\'' + - ", maxTemperature='" + maxTemperature + '\'' + - ", rectime='" + rectime + '\'' + - '}'; - } - } - @Override - public String toString() { - return "WeatherData{" + - "code=" + code + - ", data=" + data + - '}'; - } -}