@@ -46,47 +46,47 @@ type (
46
46
// it is more performant on large datasets.
47
47
OffsetPagination struct {
48
48
// Page is the page number to request.
49
- Page int `url:"page" ,omitempty`
49
+ Page int `url:"page,omitempty" `
50
50
51
51
// PerPage is the number of results desired on each page.
52
52
// Most endpoints support up to 100 records per page.
53
- PerPage int `url:"per_page" ,omitempty`
53
+ PerPage int `url:"per_page,omitempty" `
54
54
}
55
55
56
56
// OffsetPaginationMeta contains next and previous page pointers.
57
57
OffsetPaginationMeta struct {
58
58
// NextPage is a link to the next page of results, nil if none left.
59
- NextPage string `json:"next_page" ,omitempty`
59
+ NextPage string `json:"next_page,omitempty" `
60
60
61
61
// PreviousPage is a link to the previous page of results, nil if on first page.
62
- PreviousPage string `json:"previous_page" ,omitempty`
62
+ PreviousPage string `json:"previous_page,omitempty" `
63
63
}
64
64
65
65
// CursorPagination contains options for using cursor pagination.
66
66
// Cursor pagination is preferred where possible.
67
67
CursorPagination struct {
68
68
// PageSize sets the number of results per page.
69
69
// Most endpoints support up to 100 records per page.
70
- PageSize int `url:"page[size]" ,omitempty`
70
+ PageSize int `url:"page[size],omitempty" `
71
71
72
72
// PageAfter provides the "next" cursor.
73
- PageAfter string `url:"page[after]" ,omitempty`
73
+ PageAfter string `url:"page[after],omitempty" `
74
74
75
75
// PageBefore provides the "previous" cursor.
76
- PageBefore string `url:"page[before]" ,omitempty`
76
+ PageBefore string `url:"page[before],omitempty" `
77
77
}
78
78
79
79
// CursorPaginationMeta contains information concerning how to fetch
80
80
// next and previous results, and if next results exist.
81
81
CursorPaginationMeta struct {
82
82
// HasMore is true if more results exist in the endpoint.
83
- HasMore bool `json:"has_more" ,omitempty`
83
+ HasMore bool `json:"has_more,omitempty" `
84
84
85
85
// AfterCursor contains the cursor of the next result set.
86
- AfterCursor string `json:"after_cursor" ,omitempty`
86
+ AfterCursor string `json:"after_cursor,omitempty" `
87
87
88
88
// BeforeCursor contains the cursor of the previous result set.
89
- BeforeCursor string `json:"before_cursor" ,omitempty`
89
+ BeforeCursor string `json:"before_cursor,omitempty" `
90
90
}
91
91
)
92
92
0 commit comments