From 0e233e25afd17c8ac92db054820f4c2a294490f4 Mon Sep 17 00:00:00 2001 From: Krithika Sundararajan Date: Thu, 16 May 2024 09:39:08 +0800 Subject: [PATCH] Add JSON tags for Paging struct --- api/pkg/pagination/pagination.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/pkg/pagination/pagination.go b/api/pkg/pagination/pagination.go index 697a0faf..a94e7c17 100644 --- a/api/pkg/pagination/pagination.go +++ b/api/pkg/pagination/pagination.go @@ -7,9 +7,9 @@ import ( // Paging can be used to capture paging information in API responses. type Paging struct { - Page int32 - Pages int32 - Total int32 + Page int32 `json:"page,omitempty"` + Pages int32 `json:"pages,omitempty"` + Total int32 `json:"total,omitempty"` } // Options can be used to supply pagination filter options to APIs.