5c1434511b
修正周月日期范围、每日访问人数、零值柱和趋势图滚动同步 新增次日与七日留存及数据库侧精确聚合,移除五万行访问明细截断 聚合失败时拒绝返回伪零值并补齐契约、客户端绑定和定向测试 修复素材详情陶泥号竖排并完善移动端单列布局 同步运营口径与本地数据库版本漂移排障文档
28 lines
957 B
Rust
28 lines
957 B
Rust
use super::*;
|
|
|
|
impl SpacetimeClient {
|
|
pub async fn get_admin_dashboard_stats(
|
|
&self,
|
|
input: AdminDashboardStatsRecordInput,
|
|
) -> Result<AdminDashboardStatsRecord, SpacetimeClientError> {
|
|
let procedure_input = input.into();
|
|
self.call_after_connect(
|
|
"get_admin_dashboard_stats_and_return",
|
|
move |connection, sender| {
|
|
connection
|
|
.procedures()
|
|
.get_admin_dashboard_stats_and_return_then(
|
|
procedure_input,
|
|
move |_, result| {
|
|
let mapped = result
|
|
.map_err(SpacetimeClientError::from_sdk_error)
|
|
.and_then(map_admin_dashboard_stats_procedure_result);
|
|
send_once(&sender, mapped);
|
|
},
|
|
);
|
|
},
|
|
)
|
|
.await
|
|
}
|
|
}
|