feat: init Go module with config and in-memory note store

This commit is contained in:
2026-05-05 11:23:04 +08:00
parent 184d775a7e
commit deffe14e9c
7 changed files with 177 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package store
import "context"
type NoteStore interface {
GetByID(ctx context.Context, id string) (*Note, error)
List(ctx context.Context) ([]*Note, error)
Create(ctx context.Context, note *Note) error
Update(ctx context.Context, note *Note) error
Delete(ctx context.Context, id string) error
SearchByKeyword(ctx context.Context, keyword string) ([]*Note, error)
}