13 lines
373 B
Go
13 lines
373 B
Go
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)
|
|
}
|