aboutsummaryrefslogtreecommitdiff
path: root/types/response.go
diff options
context:
space:
mode:
Diffstat (limited to 'types/response.go')
-rw-r--r--types/response.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/types/response.go b/types/response.go
index d38051d..e576142 100644
--- a/types/response.go
+++ b/types/response.go
@@ -3,3 +3,11 @@ package types
type MessageResponse struct {
Message string
}
+
+type PaginatedResponse struct {
+ Items any `json:"items"`
+ Total int64 `json:"total"`
+ Page int `json:"page"`
+ PerPage int `json:"per_page"`
+ TotalPages int `json:"total_pages"`
+}