该模块为远程/异步调用API的返回结果,定义通用的封装结构和基本方法。

用法示例: ```rust use someservice::useredit::{newuser, User, UserExt, UserRole}; use apiresp::{DaoResult, TransformResult};

[tauri::command]

pub async fn addnewuser(mut user: User, mut ext: UserExt, mut roles: Vec) -> String { let result: DaoResult = newuser(&mut user, &mut ext, &mut roles).await; result.tojson_str("新增用户时出错") } ```