Adding structure and testing around title support

This commit is contained in:
2026-03-18 22:22:04 +00:00
parent 0935788b69
commit 8749ff3c03
4 changed files with 147 additions and 29 deletions

View File

@@ -4,10 +4,16 @@ import (
"time"
)
const (
NoteTitleMaxLength = 50
)
// Note represents a single note with its metadata.
type Note struct {
// ID is the unique identifier of the note.
ID int `json:"id"`
// Title is a short title for human identification of a note
Title string `json:"title"`
// LastUpdate is the timestamp of when the note was last modified.
LastUpdate time.Time `json:"last_update"`
// Content is the actual text content of the note.