perf: paginate admin audit lists

This commit is contained in:
2026-07-13 13:09:15 +08:00
parent 0864f9305b
commit 00d53c2569
14 changed files with 300 additions and 80 deletions

View File

@@ -0,0 +1,7 @@
from __future__ import annotations
from typing import Any
def page_result(items: list[Any], *, total: int, page: int, page_size: int) -> dict[str, Any]:
return {"items": items, "total": total, "page": page, "pageSize": page_size}