Add totalprice to pagination

This commit is contained in:
Katos
2024-06-22 15:38:27 +01:00
parent 53d542413b
commit a8d21f0465

View File

@@ -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 {