Files
zuanbot/src-tauri/src/commands/mod.rs
T
2025-07-26 00:38:46 +08:00

10 lines
236 B
Rust

#[tauri::command]
pub fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", name)
}
#[tauri::command]
pub fn get_message(level: &str) -> String {
println!("level = {level}");
"".to_string()
}