mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
consume core in Tauri
This commit is contained in:
1 parent
876b879a65
commit
59968e0d6c
14 files changed
+157
-75
No files matched your search
@@ -0,0 +1,6 @@
|
||||
use crate::{error::CJDicError, service::AppService};
|
||||
|
||||
pub fn list_entries_json(service: &AppService) -> Result<String, CJDicError> {
|
||||
let entries = service.list_entries()?;
|
||||
Ok(serde_json::to_string(&entries)?)
|
||||
}
|
||||
Reference in new issue
Block a user