This commit is contained in:
Kristian JBF 2026-04-14 16:28:56 +02:00
parent 99e750646e
commit 7e45dd493f
2 changed files with 8 additions and 1 deletions

View file

@ -13,3 +13,10 @@ type gotoNoteResult struct {
type GotoNoteHandler struct{
noteRepo repositories.INoteRepository
}
func(h *GotoNoteHandler) Handle(command gotoNoteCommand) (gotoNoteResult, error) {
note, err := h.noteRepo.GetBySlug(command.Slug)
if err != nil {
return gotoNoteResult{}, err
}
}

View file

@ -17,7 +17,7 @@ type INoteRepository interface {
type noteRepository struct{}
func NewNoteRepository() INoteRepository {
func NewNoteRepository(persistence.ReadContext) INoteRepository {
return &noteRepository{}
}