|  |  |  | 
|---|
|  |  |  | import com.alibaba.fastjson2.annotation.JSONField; | 
|---|
|  |  |  | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonPropertyOrder; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @JsonPropertyOrder({ | 
|---|
|  |  |  | "id", "weatherId", "weatherName", "dt", | 
|---|
|  |  |  | "airTemperature", "airHumidity", | 
|---|
|  |  |  | "ultraviolet", "lightIntensity", | 
|---|
|  |  |  | "rainfall", "windSpeed", | 
|---|
|  |  |  | "windDirection", "windDirectionStr" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | public class VoWeather { | 
|---|
|  |  |  | public static final long serialVersionUID = 202506260903001L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * 气象站名称 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "气象站名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Long weatherName; | 
|---|
|  |  |  | public String weatherName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | 西北(NW)   146°~169°    157.5° | 
|---|
|  |  |  | 北(N)       169°~191°    180° | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "风向", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String windDirectionStr; | 
|---|
|  |  |  | @JSONField(name = "windDirectionStr") // 指定 JSON 中的字段名 | 
|---|
|  |  |  | public String getWindDirectionStr() { | 
|---|
|  |  |  | String str = "" ; | 
|---|
|  |  |  | if (windDirection != null) { | 
|---|