Implement creating food

This commit is contained in:
2024-08-09 21:20:02 +02:00
parent db34fe039e
commit d9ae2e1ab3
10 changed files with 171 additions and 84 deletions

View File

@@ -16,11 +16,15 @@ type (
Error string `json:"error,omitempty"`
}
WailsFood1 struct {
Data Food `json:"data"`
Data Food `json:"data"`
Success bool `json:"success"`
Error string `json:"error,omitempty"`
}
WailsPer100 struct {
Data float32 `json:"data"`
Success bool `json:"success"`
Error string `json:"error,omitempty"`
}
WailsAggregateFood struct {
Data []AggregatedFood `json:"data"`
Success bool `json:"success"`