Unggahan awal

This commit is contained in:
2026-04-14 18:36:14 +07:00
parent 240227ce02
commit 9db8123021
43 changed files with 713 additions and 2 deletions
+22
View File
@@ -0,0 +1,22 @@
use serde::de::DeserializeOwned;
use tauri::{plugin::PluginApi, AppHandle, Runtime};
use crate::models::*;
pub fn init<R: Runtime, C: DeserializeOwned>(
app: &AppHandle<R>,
_api: PluginApi<R, C>,
) -> crate::Result<Bluclas<R>> {
Ok(Bluclas(app.clone()))
}
/// Access to the bluclas APIs.
pub struct Bluclas<R: Runtime>(AppHandle<R>);
impl<R: Runtime> Bluclas<R> {
pub fn ping(&self, payload: PingRequest) -> crate::Result<PingResponse> {
Ok(PingResponse {
value: payload.value,
})
}
}