- add doc comments to `AppsEndpoint`, `App` struct, and the `Get` method in `apps.go`. - add doc comments to the `Page` struct in `page.go`. - add doc comments to `PagingRequest`, `PagingOption`, and paging helper functions in `pagingRequest.go`.
11 lines
294 B
Go
11 lines
294 B
Go
package onspring
|
|
|
|
// Page represents a paginated response from the Onspring API.
|
|
type Page[T any] struct {
|
|
PageNumber int `json:"pageNumber"`
|
|
PageSize int `json:"pageSize"`
|
|
TotalPages int `json:"totalPages"`
|
|
TotalRecords int `json:"totalRecords"`
|
|
Items []T `json:"items"`
|
|
}
|