Documentation ¶
Index ¶
- type NoteService
- type NoteServiceImpl
- func (n *NoteServiceImpl) Create(note request.CreateNoteRequest) error
- func (n *NoteServiceImpl) Delete(noteId int) error
- func (n *NoteServiceImpl) FindAll() ([]response.NoteResponse, error)
- func (n *NoteServiceImpl) FindById(noteId int) (*response.NoteResponse, error)
- func (n *NoteServiceImpl) Update(note request.UpdateNoteRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoteService ¶
type NoteService interface { Create(note request.CreateNoteRequest) error Update(note request.UpdateNoteRequest) error Delete(noteId int) error FindById(noteId int) (*response.NoteResponse, error) FindAll() ([]response.NoteResponse, error) }
func NewNoteServiceImpl ¶
func NewNoteServiceImpl(noteRepository repositories.NoteRepository, validate *validator.Validate) NoteService
type NoteServiceImpl ¶
type NoteServiceImpl struct { NoteRepository repositories.NoteRepository // contains filtered or unexported fields }
func (*NoteServiceImpl) Create ¶
func (n *NoteServiceImpl) Create(note request.CreateNoteRequest) error
func (*NoteServiceImpl) Delete ¶
func (n *NoteServiceImpl) Delete(noteId int) error
func (*NoteServiceImpl) FindAll ¶
func (n *NoteServiceImpl) FindAll() ([]response.NoteResponse, error)
func (*NoteServiceImpl) FindById ¶
func (n *NoteServiceImpl) FindById(noteId int) (*response.NoteResponse, error)
func (*NoteServiceImpl) Update ¶
func (n *NoteServiceImpl) Update(note request.UpdateNoteRequest) error
Click to show internal directories.
Click to hide internal directories.