- main
chore
- minor changes
This commit is contained in:
abelith committed 2026-08-04 01:16:32 +05:00
1 parent 213562956c
commit e4737ca179
10 files changed
+89 -24

No files matched your search

+9 -1
View File
@@ -2,7 +2,7 @@ package application
import (
"context"
"spellbook/internal/models"
"github.com/abelith/spellbook/internal/models"
)
type SpellCaster interface {
@@ -25,6 +25,14 @@ type Application struct {
spellQuery SpellQuery
}
func NewApplication(caster SpellCaster, cmd SpellCommand, query SpellQuery) *Application {
return &Application{
caster: caster,
spellCmd: cmd,
spellQuery: query,
}
}
func (a *Application) AddSpell(
ctx context.Context,
spell models.Spell,