Files
yaoayanui/src-tauri/src/commands/app_config.rs
fengchuanhn@gmail.com f1fce871bb 1
2026-05-17 12:54:04 +08:00

20 lines
426 B
Rust

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)
}