Browse Source

接口调试修改

shilin 3 years ago
parent
commit
1525ca5752

+ 78 - 0
src/main/java/com/gyee/frame/model/custom/weather/City.java

@@ -0,0 +1,78 @@
+/**
+  * Copyright 2021 bejson.com 
+  */
+package com.gyee.frame.model.custom.weather;
+
+/**
+ * Auto-generated: 2021-07-12 15:16:38
+ *
+ * @author bejson.com (i@bejson.com)
+ * @website http://www.bejson.com/java2pojo/
+ */
+public class City {
+
+    private long id;
+    private String name;
+    private Coord coord;
+    private String country;
+    private int population;
+    private int timezone;
+    private long sunrise;
+    private long sunset;
+    public void setId(long id) {
+         this.id = id;
+     }
+     public long getId() {
+         return id;
+     }
+
+    public void setName(String name) {
+         this.name = name;
+     }
+     public String getName() {
+         return name;
+     }
+
+    public void setCoord(Coord coord) {
+         this.coord = coord;
+     }
+     public Coord getCoord() {
+         return coord;
+     }
+
+    public void setCountry(String country) {
+         this.country = country;
+     }
+     public String getCountry() {
+         return country;
+     }
+
+    public void setPopulation(int population) {
+         this.population = population;
+     }
+     public int getPopulation() {
+         return population;
+     }
+
+    public void setTimezone(int timezone) {
+         this.timezone = timezone;
+     }
+     public int getTimezone() {
+         return timezone;
+     }
+
+    public void setSunrise(long sunrise) {
+         this.sunrise = sunrise;
+     }
+     public long getSunrise() {
+         return sunrise;
+     }
+
+    public void setSunset(long sunset) {
+         this.sunset = sunset;
+     }
+     public long getSunset() {
+         return sunset;
+     }
+
+}

+ 55 - 0
src/main/java/com/gyee/frame/model/custom/weather/JsonRootBean.java

@@ -0,0 +1,55 @@
+/**
+  * Copyright 2021 bejson.com 
+  */
+package com.gyee.frame.model.custom.weather;
+import java.util.List;
+
+/**
+ * Auto-generated: 2021-07-12 15:16:38
+ *
+ * @author bejson.com (i@bejson.com)
+ * @website http://www.bejson.com/java2pojo/
+ */
+public class JsonRootBean {
+
+    private String cod;
+    private int message;
+    private int cnt;
+    private List<com.gyee.frame.model.custom.weather.List> list;
+    private City city;
+    public void setCod(String cod) {
+         this.cod = cod;
+     }
+     public String getCod() {
+         return cod;
+     }
+
+    public void setMessage(int message) {
+         this.message = message;
+     }
+     public int getMessage() {
+         return message;
+     }
+
+    public void setCnt(int cnt) {
+         this.cnt = cnt;
+     }
+     public int getCnt() {
+         return cnt;
+     }
+
+    public void setList(List<com.gyee.frame.model.custom.weather.List> list) {
+         this.list = list;
+     }
+     public List<com.gyee.frame.model.custom.weather.List> getList() {
+         return list;
+     }
+
+    public void setCity(City city) {
+         this.city = city;
+     }
+     public City getCity() {
+         return city;
+     }
+
+}

+ 87 - 0
src/main/java/com/gyee/frame/model/custom/weather/List.java

@@ -0,0 +1,87 @@
+/**
+  * Copyright 2021 bejson.com 
+  */
+package com.gyee.frame.model.custom.weather;
+
+import java.util.Date;
+/**
+ * Auto-generated: 2021-07-12 15:16:38
+ *
+ * @author bejson.com (i@bejson.com)
+ * @website http://www.bejson.com/java2pojo/
+ */
+public class List {
+
+    private long dt;
+    private Main main;
+    private java.util.List<Weather> weather;
+    private Clouds clouds;
+    private Wind wind;
+    private int visibility;
+    private int pop;
+    private Sys sys;
+    private Date dt_txt;
+    public void setDt(long dt) {
+         this.dt = dt;
+     }
+     public long getDt() {
+         return dt;
+     }
+
+    public void setMain(Main main) {
+         this.main = main;
+     }
+     public Main getMain() {
+         return main;
+     }
+
+    public void setWeather(java.util.List<Weather> weather) {
+         this.weather = weather;
+     }
+     public java.util.List<Weather> getWeather() {
+         return weather;
+     }
+
+    public void setClouds(Clouds clouds) {
+         this.clouds = clouds;
+     }
+     public Clouds getClouds() {
+         return clouds;
+     }
+
+    public void setWind(Wind wind) {
+         this.wind = wind;
+     }
+     public Wind getWind() {
+         return wind;
+     }
+
+    public void setVisibility(int visibility) {
+         this.visibility = visibility;
+     }
+     public int getVisibility() {
+         return visibility;
+     }
+
+    public void setPop(int pop) {
+         this.pop = pop;
+     }
+     public int getPop() {
+         return pop;
+     }
+
+    public void setSys(Sys sys) {
+         this.sys = sys;
+     }
+     public Sys getSys() {
+         return sys;
+     }
+
+    public void setDt_txt(Date dt_txt) {
+         this.dt_txt = dt_txt;
+     }
+     public Date getDt_txt() {
+         return dt_txt;
+     }
+
+}