Documentation ¶
Index ¶
- type NoteRepository
- type Repo
- func (r *Repo) AddNote(note models.AddRequest) (string, error)
- func (r *Repo) DeleteNote(note models.DeleteRequest) (string, error)
- func (r *Repo) EditNote(note models.EditRequest) (string, error)
- func (r *Repo) GetAllNotes() ([]models.Notebook, error)
- func (r *Repo) GetNoteWithId(Id uint) (*models.Notebook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoteRepository ¶
type NoteRepository interface { AddNote(note models.AddRequest) (string, error) EditNote(note models.EditRequest) (string, error) DeleteNote(note models.DeleteRequest) (string, error) GetAllNotes() ([]models.Notebook, error) GetNoteWithId(id uint) (*models.Notebook, error) }
func NewRepo ¶
func NewRepo(db *gorm.DB) NoteRepository
type Repo ¶
func (*Repo) DeleteNote ¶
func (r *Repo) DeleteNote(note models.DeleteRequest) (string, error)
Click to show internal directories.
Click to hide internal directories.