Wrap swap

This commit is contained in:
Bianca Fürstenau 2025-02-20 09:49:40 +01:00
parent 16abbc83f1
commit 1e77a7d831

11
src/commands.rs Normal file
View file

@ -0,0 +1,11 @@
use tauri_sys::Error;
use tauri_sys::tauri::invoke;
pub struct Swap {
store: &str,
acc: i64,
}
pub async fn swap(store: &str, acc: i64) -> Result<(), Error> {
let args = Swap { store, acc };
invoke("swap", &args)
}