src/app/shared/components/shared.interface.ts
Properties |
order |
order:
|
Type : string
|
page |
page:
|
Type : number
|
size |
size:
|
Type : number
|
sort |
sort:
|
Type : string
|
export class OrderParams {
static ASC = 'ASC';
static DESC = 'DESC';
}
export interface SortParams {
order: string;
sort: string;
}
export interface PaginationParams {
page: number;
size: number;
}
export interface ListParams extends SortParams, PaginationParams {
page: number;
size: number;
sort: string;
order: string;
}
export interface ListDefaultParams extends SortParams, PaginationParams {
q: string;
page: number;
size: number;
sort: string;
order: string;
}