From 70df49efa74e715c6083be3571e225ab5c2a2c49 Mon Sep 17 00:00:00 2001 From: mStar Date: Fri, 13 Dec 2024 16:32:01 +0100 Subject: [PATCH] Think I got some parameters for create note down --- storage/notes.go | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/storage/notes.go b/storage/notes.go index 53d4dc0..1bd1702 100644 --- a/storage/notes.go +++ b/storage/notes.go @@ -121,15 +121,38 @@ func (s *Storage) UpdateNote(note *Note) error { return nil } -func (s *Storage) CreateNoteLocal() (*Note, error) { +func (s *Storage) CreateNoteLocal( + creatorId string, + rawContent string, + contentWarning *string, + timestamp time.Time, + attachmentIds []string, + emoteIds []string, + repliesToId *string, + quotesId *string, + accessLevel NoteAccessLevel, + tags []string, +) (*Note, error) { defer util.Untrace(util.Trace(&log.Logger)) - // TODO: Think of good arguments and implement me + // TODO: Implement me panic("not implemented") } -func (s *Storage) CreateNoteRemote() (*Note, error) { +func (s *Storage) CreateNoteRemote( + creatorId string, + rawContent string, + contentWarning *string, + timestamp time.Time, + attachmentIds []string, + emoteIds []string, + repliesToId *string, + quotesId *string, + accessLevel NoteAccessLevel, + tags []string, + originId string, +) (*Note, error) { defer util.Untrace(util.Trace(&log.Logger)) - // TODO: Think of good arguments and implement me + // TODO: Implement me panic("not implemented") }