mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-28 07:56:35 +01:00
Add totalprice to pagination
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user