fix: add template track

This commit is contained in:
root
2025-07-10 23:06:18 +08:00
parent 5080ac1e8d
commit e0fbb1124d
5 changed files with 528 additions and 2 deletions

View File

@@ -102,6 +102,20 @@ pub async fn delete_template(app: tauri::AppHandle, template_id: String) -> Resu
execute_python_command(app, &args, None).await
}
#[tauri::command]
pub async fn get_template_detail(app: tauri::AppHandle, template_id: String) -> Result<String, String> {
let args = vec![
"-m".to_string(),
"python_core.services.template_manager".to_string(),
"--action".to_string(),
"get_template_detail".to_string(),
"--template_id".to_string(),
template_id,
];
execute_python_command(app, &args, None).await
}
// Example: AI Video generation with progress
#[allow(dead_code)]
#[tauri::command]