Archived
Menyelesaikan plugin, siap ucob
This commit is contained in:
1 parent
6f5478e9ab
commit
caf005b82d
14 files changed
+312
-15
No files matched your search
+8
-2
@@ -2,8 +2,14 @@ use tauri::{AppHandle, Runtime, command};
|
||||
|
||||
use crate::AuthExt;
|
||||
use crate::Result;
|
||||
use crate::models::SAuthMuatanMasuk;
|
||||
|
||||
#[command]
|
||||
pub(crate) async fn autentikasi<R: Runtime>(app: AppHandle<R>) -> Result<Vec<()>> {
|
||||
return app.auth().autentikasi();
|
||||
pub(crate) async fn masuk<R: Runtime>(app: AppHandle<R>, payload: SAuthMuatanMasuk) -> Result<()> {
|
||||
return app.auth().masuk(payload);
|
||||
}
|
||||
|
||||
#[command]
|
||||
pub(crate) async fn keluar<R: Runtime>(app: AppHandle<R>) -> Result<()> {
|
||||
return app.auth().keluar();
|
||||
}
|
||||
Reference in new issue
Block a user