diff --git a/pagination/v1/pagination.pb.go b/pagination/pagination.pb.go similarity index 100% rename from pagination/v1/pagination.pb.go rename to pagination/pagination.pb.go diff --git a/pagination/v1/pagination.go b/pagination/v1/pagination.go index cc07208..af2636d 100644 --- a/pagination/v1/pagination.go +++ b/pagination/v1/pagination.go @@ -1,6 +1,8 @@ package pagination -import "math" +import ( + "math" +) const ( DefaultPage = 1 @@ -8,6 +10,13 @@ const ( MaxPageSize = 100 ) +type Pagination struct { + Page int32 `json:"page"` + PageSize int32 `json:"page_size"` + TotalPage int32 `json:"total_page"` + Total int32 `json:"total"` +} + type Integer interface { ~int | ~int32 }