feat: get handlers return object slices

This commit is contained in:
2025-07-20 15:42:43 +02:00
parent 2e16c67321
commit 45712dacf6
11 changed files with 31 additions and 41 deletions

View File

@ -1,7 +1,7 @@
package cmd
import (
"git.bissendorf.co/bissendorf/unifood/m/v2/core/handler/menu"
"git.bissendorf.co/bissendorf/unifood/m/v2/core/handler/dishes"
"git.bissendorf.co/bissendorf/unifood/m/v2/core/interfaces"
"git.bissendorf.co/bissendorf/unifood/m/v2/core/services/stwhbclient"
"git.bissendorf.co/bissendorf/unifood/m/v2/model/external/stwbremen"
@ -9,10 +9,10 @@ import (
var availableResources = []interfaces.ResourceCommand[any]{
{
Name: "menu",
Aliases: []string{"m"},
Name: "dishes",
Aliases: []string{"dish", "d"},
Verbs: []interfaces.Verb{interfaces.VerbGet},
Handler: &menu.MenuHandler{
Handler: &dishes.DishesHandler{
QueryClient: stwhbclient.New[[]stwbremen.Dish](),
},
},