Documentation ¶
Index ¶
- type NoteRepository
- type NoteRepositoryImpl
- func (n *NoteRepositoryImpl) Delete(noteId int) error
- func (n *NoteRepositoryImpl) FindAll() ([]entities.Note, error)
- func (n *NoteRepositoryImpl) FindById(noteId int) (entities.Note, error)
- func (n *NoteRepositoryImpl) Save(note entities.Note) error
- func (n *NoteRepositoryImpl) Update(note entities.Note) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoteRepository ¶
type NoteRepository interface { Save(note entities.Note) error Update(note entities.Note) error Delete(noteId int) error FindById(noteId int) (entities.Note, error) FindAll() ([]entities.Note, error) }
func NewNoteRepositoryImpl ¶
func NewNoteRepositoryImpl(db *gorm.DB) NoteRepository
type NoteRepositoryImpl ¶
func (*NoteRepositoryImpl) Delete ¶
func (n *NoteRepositoryImpl) Delete(noteId int) error
func (*NoteRepositoryImpl) FindAll ¶
func (n *NoteRepositoryImpl) FindAll() ([]entities.Note, error)
Click to show internal directories.
Click to hide internal directories.