From 7cb7974e1bb9d306fa1af5c6383ff7665b2e7a1a Mon Sep 17 00:00:00 2001 From: Arthur Monney Date: Tue, 18 Oct 2022 04:31:11 +0100 Subject: [PATCH] :memo: add documentation --- src/app/shared/interfaces/values.interface.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/app/shared/interfaces/values.interface.ts b/src/app/shared/interfaces/values.interface.ts index 00c1ce4..8ed06cd 100644 --- a/src/app/shared/interfaces/values.interface.ts +++ b/src/app/shared/interfaces/values.interface.ts @@ -1,19 +1,20 @@ /** * This pagination Object is the default structure of - * Laravel Eloquent Pagination Response - * @see https://laravel.com/docs/eloquent/pagination + * a Custom Laravel Eloquent Pagination Response + * + * @see https://laravel.com/docs/eloquent-resources#pagination */ export const pagination = { total: 0, - per_page: 0, - current_page: 0, - next_page: null, - prev_page: null, - first_page: null, - last_page: null, + perPage: 0, + currentPage: 0, + nextPage: null, + prevPage: null, + firstPage: null, + lastPage: null, from: 0, to: 0, - total_pages: 0, + totalPages: 0, }; export const status = {