Menambah izin per perintah atau per fungsi

This commit is contained in:
rizky_denianto committed 2026-07-16 00:32:16 +07:00
1 parent b7ceeccb52
commit c72c86c984
14 files changed
+234 -35

No files matched your search

+10
View File
@@ -4,6 +4,16 @@ use crate::BluclasExt;
use crate::Result;
use crate::models::*;
#[command]
pub(crate) async fn cek_izin<R: Runtime>(app: AppHandle<R>) -> Result<bool> {
return app.bluclas().cek_izin();
}
#[command]
pub(crate) async fn minta_izin<R: Runtime>(app: AppHandle<R>) -> Result<()> {
return app.bluclas().minta_izin();
}
#[command]
pub(crate) async fn daftar_perangkat<R: Runtime>(
app: AppHandle<R>,