mirror of
https://github.com/hay-kot/homebox.git
synced 2025-06-04 19:42:29 +00:00
Add label and location total price
This commit is contained in:
parent
de4081d0d2
commit
f67c98644c
6 changed files with 67 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -49,6 +49,7 @@ type (
|
|||
Parent *LocationSummary `json:"parent,omitempty"`
|
||||
LocationSummary
|
||||
Children []LocationSummary `json:"children"`
|
||||
TotalPrice float64 `json:"totalPrice"`
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue