services

package
v0.0.0-...-365bb53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL