feat
- main chore - minor changes
This commit is contained in:
1 parent
213562956c
commit
e4737ca179
10 files changed
+89
-24
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user