Feature: Paged customer list.

This commit is contained in:
2025-07-10 09:39:55 +00:00
parent af684c976e
commit 0dbec4784b
9 changed files with 390 additions and 39 deletions

View File

@ -0,0 +1,17 @@
export class PagedResult<T> {
items: T[];
page: number; // current page (zero-based)
pageSize: number; // items per page
total: number; // total items in all pages
totalPages: number;
field?: string; // active sort column
sortDirection?: 'asc' | 'desc'; // sort direction
constructor(items: T[], page: number, pageSize: number, total: number) {
this.items = items;
this.page = page;
this.pageSize = pageSize;
this.total = total;
this.totalPages = Math.ceil(total / pageSize);
}
}