| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-02-22 12:07:07 |
| 4 | * @LastEditTime: 2025-02-22 12:07:24 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: |
| 7 | */ |
| 8 | export interface ApiCorrectQuery { |
| 9 | pageSize: number; |
| 10 | pageNo: number; |
| 11 | } |
| 12 | |
| 13 | export interface IPaginationMeta { |
| 14 | itemCount: number; |
| 15 | totalItems?: number; |
| 16 | itemsPerPage: number; |
| 17 | totalPages?: number; |
| 18 | currentPage: number; |
| 19 | } |
| 20 | |
| 21 | export class Pagination<T> { |
| 22 | constructor( |
| 23 | public readonly items: T[], |
| 24 | public readonly meta: IPaginationMeta, |
| 25 | ) {} |
| 26 | } |
| 27 |