Rework search to return a list

Like a proper search would!"
This commit is contained in:
2024-08-13 17:41:01 +02:00
parent a6626761e7
commit 8fd8d53cc3
6 changed files with 61 additions and 32 deletions

View File

@@ -28,6 +28,11 @@ type (
Success bool `json:"success"`
Error string `json:"error,omitempty"`
}
WailsFoodSearch struct {
Data []FoodSearch `json:"data"`
Success bool `json:"success"`
Error string `json:"error,omitempty"`
}
WailsWeight struct {
Data []Weight `json:"data"`