Wrap swap
This commit is contained in:
parent
16abbc83f1
commit
1e77a7d831
1 changed files with 11 additions and 0 deletions
11
src/commands.rs
Normal file
11
src/commands.rs
Normal 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)
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue