Menghapus cek izin dan minta izin
This commit is contained in:
1 parent
f98cd2169a
commit
c195d2bc99
12 files changed
+6
-160
No files matched your search
@@ -1,22 +1,11 @@
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { SBlueclasMuatanKirim, SBlueclasResponDaftarPerangkat } from "./models";
|
||||
|
||||
export async function cekIzin(): Promise<string> {
|
||||
return await invoke<string>("plugin:bluclas|cek_izin", {}).then(
|
||||
(res: string) => res,
|
||||
);
|
||||
}
|
||||
|
||||
export async function mintaIzin(): Promise<null> {
|
||||
return await invoke<null>("plugin:bluclas|minta_izin", {});
|
||||
}
|
||||
|
||||
export async function daftarPerangkat(): Promise<
|
||||
SBlueclasResponDaftarPerangkat[]
|
||||
> {
|
||||
return await invoke<SBlueclasResponDaftarPerangkat[]>(
|
||||
"plugin:bluclas|daftar_perangkat",
|
||||
{},
|
||||
).then((res: SBlueclasResponDaftarPerangkat[]) => res);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user