This commit is contained in:
fengchuanhn@gmail.com
2026-05-17 12:54:04 +08:00
parent e6c8c18be0
commit f1fce871bb
28 changed files with 2566 additions and 235 deletions

View File

@@ -0,0 +1,19 @@
use std::collections::HashMap;
use tauri::State;
use crate::app_config::AppConfig;
#[tauri::command]
pub async fn get_app_config(
app_config: State<'_, AppConfig>,
) -> Result<HashMap<String, String>, String> {
Ok(app_config.entries().await)
}
#[tauri::command]
pub async fn get_app_config_last_message(
app_config: State<'_, AppConfig>,
) -> Result<String, String> {
Ok(app_config.last_message().await)
}