Skip to content

Commit 0597548

Browse files
committed
fix: max_intensity i32 to f64
1 parent 3dd9b73 commit 0597548

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/models.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub struct SichuanEew {
114114
#[serde(rename = "Depth")]
115115
pub depth: f64,
116116
#[serde(rename = "MaxIntensity")]
117-
pub max_intensity: i32,
117+
pub max_intensity: f64,
118118
}
119119

120120
/// 中国地震台网中心预警数据
@@ -137,7 +137,7 @@ pub struct CencEew {
137137
#[serde(rename = "Depth")]
138138
pub depth: f64,
139139
#[serde(rename = "MaxIntensity")]
140-
pub max_intensity: i32,
140+
pub max_intensity: f64,
141141
}
142142

143143
/// 福建地震局预警数据

0 commit comments

Comments
 (0)