fix: 修复重复导入和未使用变量的编译警告
- 删除gemini_service.rs中重复的导入语句 - 修复未使用的request参数警告 - cargo check现在可以成功编译
This commit is contained in:
parent
d33f7fbc7f
commit
67574350f4
|
|
@ -25,12 +25,6 @@ use crate::data::models::outfit_recommendation::{
|
||||||
ColorInfo, OutfitItem, SceneRecommendation
|
ColorInfo, OutfitItem, SceneRecommendation
|
||||||
};
|
};
|
||||||
|
|
||||||
// 导入穿搭方案推荐相关模块
|
|
||||||
use crate::data::models::outfit_recommendation::{
|
|
||||||
OutfitRecommendation, OutfitRecommendationRequest, OutfitRecommendationResponse,
|
|
||||||
OutfitItem, ColorInfo, SceneRecommendation
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Gemini API配置
|
/// Gemini API配置
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct GeminiConfig {
|
pub struct GeminiConfig {
|
||||||
|
|
@ -2048,7 +2042,7 @@ impl GeminiService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 解析穿搭方案推荐响应 (向后兼容)
|
/// 解析穿搭方案推荐响应 (向后兼容)
|
||||||
fn parse_outfit_recommendations(&self, raw_response: &str, request: &OutfitRecommendationRequest) -> Result<Vec<OutfitRecommendation>> {
|
fn parse_outfit_recommendations(&self, raw_response: &str, _request: &OutfitRecommendationRequest) -> Result<Vec<OutfitRecommendation>> {
|
||||||
println!("🔍 开始解析穿搭方案响应...");
|
println!("🔍 开始解析穿搭方案响应...");
|
||||||
println!("📄 原始响应: {}", raw_response);
|
println!("📄 原始响应: {}", raw_response);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue