From b2b9b40792d5e8e511d9b65c1c27feb932cdd9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 16 Dec 2023 17:57:42 +0100 Subject: [PATCH] v0.0.347 --- goextVersion.go | 4 ++-- pagination/pagination.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 811bfe1..c23dd71 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.346" +const GoextVersion = "0.0.347" -const GoextVersionTimestamp = "2023-12-13T16:22:15+0100" +const GoextVersionTimestamp = "2023-12-16T17:57:42+0100" diff --git a/pagination/pagination.go b/pagination/pagination.go index 75eb093..ff588d6 100644 --- a/pagination/pagination.go +++ b/pagination/pagination.go @@ -1,11 +1,11 @@ package pagination type Pagination struct { - Page int `json:"page"` // page (first page == 1) - Limit int `json:"limit"` // max-page-size - TotalPages int `json:"totalPages"` // total page-count - TotalItems int `json:"totalItems"` // total items-count - CurrentPageCount int `json:"currntPageCount"` // item-count in current page ( == len(data) ) + Page int `json:"page"` // page (first page == 1) + Limit int `json:"limit"` // max-page-size + TotalPages int `json:"totalPages"` // total page-count + TotalItems int `json:"totalItems"` // total items-count + CurrentPageCount int `json:"currentPageCount"` // item-count in current page ( == len(data) ) } func CalcPaginationTotalPages(totalItems int, limit int) int {