Archived
16 lines
389 B
Rust
16 lines
389 B
Rust
use tauri::{AppHandle, Runtime, command};
|
|
|
|
use crate::AuthExt;
|
|
use crate::Result;
|
|
use crate::models::SAuthMuatanMasuk;
|
|
|
|
#[command]
|
|
pub(crate) async fn masuk<R: Runtime>(app: AppHandle<R>, muatan: SAuthMuatanMasuk) -> Result<()> {
|
|
return app.auth().masuk(muatan);
|
|
}
|
|
|
|
#[command]
|
|
pub(crate) async fn keluar<R: Runtime>(app: AppHandle<R>) -> Result<()> {
|
|
return app.auth().keluar();
|
|
}
|