修改了get_weather方法,现在可以实现前端的需求了

This commit is contained in:
2025-09-27 17:29:46 +08:00
parent 6d680260a2
commit 02703de89c
3 changed files with 37 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ pub async fn get_weather_details(pool: &PgPool, weather_id: i32) -> Result<Weath
Ok(row)
}
// 替换db.rs中的get_weather_list函数
// get_weather_list函数
pub async fn get_weather_list(
pool: &PgPool,
user_id: i32,