Files
spellbook/internal/handlers/handlers.go
T
abelith 478ac2fc7b chore
- application struct
2026-08-03 04:49:59 +05:00

15 lines
456 B
Go

package handlers
import (
"context"
"spellbook/internal/models"
)
type Application interface {
AddSpell(ctx context.Context, spell models.Spell) error
GetSpell(ctx context.Context, spellName string) (models.Spell, error)
GetSpells(ctx context.Context, query models.SearchQuery) ([]models.Spell, error)
DeleteSpell(ctx context.Context, spellName string) error
CastSpell(ctx context.Context, spellCast models.SpellCast) (models.CastResult, error)
}