Add label and location total price

This commit is contained in:
Jack Bailey 2024-01-25 11:46:29 +00:00
parent de4081d0d2
commit f67c98644c
No known key found for this signature in database
6 changed files with 67 additions and 5 deletions

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 {

View file

@ -49,6 +49,7 @@ type (
Parent *LocationSummary `json:"parent,omitempty"`
LocationSummary
Children []LocationSummary `json:"children"`
TotalPrice float64 `json:"totalPrice"`
}
)