- application struct
This commit is contained in:
abelith committed 2026-08-03 04:49:59 +05:00
1 parent 7c1a49f457
commit 478ac2fc7b
3 files changed
+106

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
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)
}