Skip to content

Commit

Permalink
fix(XXX): fix exclusive page response json data structure (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzolt-4chain authored Oct 18, 2024
1 parent 77011ac commit febd039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ type SearchContactsResponse = PagedResponse[*Contact]
// ExclusiveStartKeyPage represents a paginated response for database records using Exclusive Start Key paging
type ExclusiveStartKeyPage[T any] struct {
// List of records for the response
Content T
Content T `json:"content"`
// Pagination details
Page ExclusiveStartKeyPageInfo
Page ExclusiveStartKeyPageInfo `json:"page"`
}

// ExclusiveStartKeyPageInfo represents the pagination information for limiting and sorting database query results
Expand Down

0 comments on commit febd039

Please sign in to comment.