migrate from ts-rs to tauri-specta

This commit is contained in:
2026-03-07 18:36:51 +08:00
parent f65d837841
commit 4d7e97771a
86 changed files with 766 additions and 609 deletions

View File

@@ -4,6 +4,7 @@ use crate::services::auth::get_session_token;
use tracing::info;
#[tauri::command]
#[specta::specta]
pub fn quit_app() -> Result<(), String> {
let app_handle = get_app_handle();
app_handle.exit(0);
@@ -11,6 +12,7 @@ pub fn quit_app() -> Result<(), String> {
}
#[tauri::command]
#[specta::specta]
pub fn restart_app() {
let app_handle = get_app_handle();
app_handle.restart();
@@ -21,6 +23,7 @@ pub fn restart_app() {
/// Validates server health, checks for a valid session token,
/// then reconstructs the user session (re-fetches app data + WebSocket).
#[tauri::command]
#[specta::specta]
pub async fn retry_connection() -> Result<(), String> {
info!("Retrying connection...");