Skip to content

Commit

Permalink
Add JSON tags for Paging struct (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
krithika369 authored May 17, 2024
1 parent 952a4a1 commit b89dab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/pkg/pagination/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b89dab5

Please sign in to comment.