A continuation of HomeBox the inventory and organization system built for the Home User
Add totalprice to pagination
Katosa8d21f046570
diff --git a/backend/internal/data/repo/pagination.go b/backend/internal/data/repo/pagination.goindex d8878d02..5f540ee4 100644--- a/backend/internal/data/repo/pagination.go+++ b/backend/internal/data/repo/pagination.go@@ -5,6 +5,7 @@ type PaginationResult[T any] struct {PageSize int `json:"pageSize"`Total int `json:"total"`Items []T `json:"items"`+ TotalPrice float64 `json:"totalPrice"`}func calculateOffset(page, pageSize int) int {