update
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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<Arc<RwLock<PersonCache>>>) -> impl Responder {
|
||||
|
||||
Reference in New Issue
Block a user