feat: add Paginator component with navigation functionality and integrate into reutilizables test page
This commit is contained in:
30
src/app/core/services/api-paginated-response.interface.ts
Normal file
30
src/app/core/services/api-paginated-response.interface.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { ApiResponse } from './api-response.interface';
|
||||
|
||||
export interface ApiPaginationMetaLink {
|
||||
url: string | null;
|
||||
label: string;
|
||||
active: boolean;
|
||||
}
|
||||
|
||||
export interface ApiPaginationMeta {
|
||||
current_page: number;
|
||||
from: number | null;
|
||||
last_page: number;
|
||||
links: ApiPaginationMetaLink[];
|
||||
path: string;
|
||||
per_page: number;
|
||||
to: number | null;
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface ApiPaginationLinks {
|
||||
first: string;
|
||||
last: string;
|
||||
prev: string | null;
|
||||
next: string | null;
|
||||
}
|
||||
|
||||
export interface ApiPaginatedResponse<T> extends ApiResponse<T> {
|
||||
meta: ApiPaginationMeta;
|
||||
links: ApiPaginationLinks;
|
||||
}
|
||||
Reference in New Issue
Block a user