Expose admin user export counts through gateway state

This commit is contained in:
RWDai
2026-05-20 16:51:46 +08:00
parent 831554f11d
commit 8440846bae
3 changed files with 27 additions and 0 deletions
@@ -169,6 +169,16 @@ impl AppState {
.map_err(|err| GatewayError::Internal(err.to_string()))
}
pub(crate) async fn count_export_users(
&self,
query: &aether_data::repository::users::UserExportListQuery,
) -> Result<u64, GatewayError> {
self.data
.count_export_users(query)
.await
.map_err(|err| GatewayError::Internal(err.to_string()))
}
pub(crate) async fn find_export_user_by_id(
&self,
user_id: &str,