Thought it best to add some comments
This commit is contained in:
@@ -4,9 +4,14 @@ import (
|
||||
"git.hrafn.xyz/aether/notes/internal/models"
|
||||
)
|
||||
|
||||
// NoteStore defines the interface for persisting and retrieving notes.
|
||||
type NoteStore interface {
|
||||
// SaveNote saves a note to the store and returns the saved note.
|
||||
SaveNote(models.Note) (models.Note, error)
|
||||
// GetNoteByID retrieves a note by its ID.
|
||||
GetNoteByID(int) (models.Note, error)
|
||||
// GetAllNotes retrieves all notes from the store.
|
||||
GetAllNotes() ([]models.Note, error)
|
||||
// DeleteNoteByID deletes a note by its ID.
|
||||
DeleteNoteByID(int) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user