Added NoteStore interface, mock and repository with Create method

This commit is contained in:
Micheal Wilkinson
2026-03-17 20:49:50 +00:00
parent 9cb33137fe
commit c05603d624
4 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package repository
import (
"fmt"
"git.hrafn.xyz/aether/notes/internal/models"
)
type NoteRepository struct {
store NoteStore
}
func NewNoteRepository(store NoteStore) *NoteRepository {
return &NoteRepository{store: store}
}
func (r *NoteRepository) CreateNote(content string) (models.Note, error) {
return models.Note{}, fmt.Errorf("not implemented")
}