feat: remove unused command

This commit is contained in:
zihluwang committed 2025-07-28 10:00:53 +08:00
1 parent 2d52b8df56
commit 9471e51e8c
1 file changed
+1 -6
+1 -6
View File
@@ -1,11 +1,6 @@
use tauri::{State}; use tauri::{State};
use rusqlite::{OptionalExtension}; use rusqlite::{OptionalExtension};
use crate::database::Database; // 自己定义的含互斥锁包装 SQLite 连接的结构 use crate::database::Database;
#[tauri::command]
pub fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", name)
}
#[tauri::command] #[tauri::command]
pub async fn get_message(state: State<'_, Database>, level: Option<String>) -> Result<String, String> { pub async fn get_message(state: State<'_, Database>, level: Option<String>) -> Result<String, String> {