diff --git a/src/engine/tag_dict.rs b/src/engine/tag_dict.rs index b7aa1b1..6caf328 100644 --- a/src/engine/tag_dict.rs +++ b/src/engine/tag_dict.rs @@ -73,6 +73,8 @@ impl Default for TagDict { categories: HashMap::new(), tag_to_category: HashMap::new(), stop_words: HashSet::new(), + person_prefixes: Vec::new(), + excluded_person_names: HashSet::new(), }; // 内建回退:即使 JSON 文件不存在也能工作 dict.fill_builtin(); diff --git a/src/routes/person.rs b/src/routes/person.rs index 7a7876f..d8a0e17 100644 --- a/src/routes/person.rs +++ b/src/routes/person.rs @@ -5,7 +5,6 @@ use actix_web::{HttpResponse, Responder, web}; use std::collections::HashMap; use std::sync::Arc; use tokio::sync::RwLock; -use uuid::Uuid; /// GET /api/people — 从缓存获取所有人名列表 pub async fn get_people(cache: web::Data>>) -> impl Responder {