Skip to content

Commit b89dab5

Browse files
authored
Add JSON tags for Paging struct (caraml-dev#98)
1 parent 952a4a1 commit b89dab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/pkg/pagination/pagination.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77

88
// Paging can be used to capture paging information in API responses.
99
type Paging struct {
10-
Page int32
11-
Pages int32
12-
Total int32
10+
Page int32 `json:"page,omitempty"`
11+
Pages int32 `json:"pages,omitempty"`
12+
Total int32 `json:"total,omitempty"`
1313
}
1414

1515
// Options can be used to supply pagination filter options to APIs.

0 commit comments

Comments
 (0)