fix: rename dish to meal

This commit is contained in:
2025-07-20 19:56:25 +02:00
parent da2d507629
commit 4e60b4e69f
4 changed files with 33 additions and 33 deletions

View File

@ -3,7 +3,7 @@ package cmd
import (
"context"
"git.bissendorf.co/bissendorf/unifood/m/v2/core/handler/dishes"
"git.bissendorf.co/bissendorf/unifood/m/v2/core/handler/meals"
"git.bissendorf.co/bissendorf/unifood/m/v2/core/interfaces"
"git.bissendorf.co/bissendorf/unifood/m/v2/core/interfaces/params"
"git.bissendorf.co/bissendorf/unifood/m/v2/core/services/stwhbclient"
@ -21,12 +21,12 @@ var availableResources = []interfaces.ResourceCommand[any]{
Handler: &registeredResourcesHandler{},
},
{
Name: "dishes",
Aliases: []string{"dish", "d"},
Description: "A dish represents a cooked combination of ingredients that can be bought and consumed",
Name: "meals",
Aliases: []string{"meal", "m"},
Description: "A meal represents a cooked combination of ingredients that can be bought and consumed",
Verbs: []interfaces.Verb{interfaces.VerbGet},
Handler: &dishes.DishesHandler{
QueryClient: stwhbclient.New[[]stwbremen.Dish](),
Handler: &meals.MealsHandler{
QueryClient: stwhbclient.New[[]stwbremen.Meal](),
},
},
}