update code level

This commit is contained in:
lychang
2026-03-25 14:38:21 +08:00
parent e05cf48063
commit 6b2d44ca78
8 changed files with 253 additions and 72 deletions

View File

@@ -1,5 +1,7 @@
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use uuid::Uuid;
use tracing::{info, error, warn, debug};
#[derive(Debug, Serialize, Deserialize)]
pub struct Album {
@@ -142,8 +144,8 @@ impl AlbumsCache {
.push(album.clone());
}
println!("✅ 相册缓存已更新,共 {} 个相册,{} 个搜索索引项",
self.albums.len(), self.search_index.len());
info!("相册缓存已更新,共 {} 个相册,{} 个搜索索引项",
self.albums.len(), self.search_index.len());
}
pub fn search(&self, query: &str) -> Vec<AlbumInfo> {