Skip to main content

Module admin_stats

Module admin_stats 

Source
Expand description

后台统计(侧栏数量)的 Leptos server function。 后台统计接口:侧栏导航项右侧的数量。

文章数读文章统计缓存,待审评论数读待审计数缓存;素材与评论总数是两次 计数查询,侧栏每次换页刷新一次。Leptos server function,注册在 /api 路径下。

Structs§

AdminNavCounts
侧栏数量。
GetAdminNavCounts
Serialized arguments for the get_admin_nav_counts server function.

Functions§

get_admin_nav_counts
获取侧栏数量。需要 admin 权限。