Think I got some parameters for create note down

This commit is contained in:
Melody Becker 2024-12-13 16:32:01 +01:00
parent 599874c486
commit 70df49efa7

View file

@ -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")
}