BaseListResponse
Dto used as template for api list responses.
BaseListResponse
type BaseListResponse<T> = {
message: string;
status: number;
count: int;
totalCount: int;
currentPage: int;
nextPage: int | null;
prevPage: int | null;
totalPages: int;
value: T[];
};
Properties
Name | Type | Description | Required | Default |
---|---|---|---|---|
message | string | Message of the response | Yes | - |
status | number | Status of the response | Yes | - |
count | int | Number of items returned in the response | Yes | 0 |
totalCount | int | Total number of items in the list | Yes | 0 |
currentPage | int | Current page number | Yes | 1 |
nextPage | int | Next page number | No | null |
prevPage | int | Previous page number | No | null |
totalPages | int | Total number of pages | No | 0 |
value | T[] | List of items returned in the response | No | undefined |