Documentation ¶
Index ¶
- type NoteService
- func (s *NoteService) CreateNote(note *models.Note) error
- func (s *NoteService) DeleteNote(note *models.Note) error
- func (s *NoteService) GetAllNotes(userID uint) ([]models.Note, error)
- func (s *NoteService) GetNoteByID(note models.Note) (*models.Note, error)
- func (s *NoteService) UpdateNote(note *models.Note) error
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoteService ¶
type NoteService struct {
// contains filtered or unexported fields
}
func NewNoteService ¶
func NewNoteService(repo *repository.NoteRepository) *NoteService
func (*NoteService) CreateNote ¶
func (s *NoteService) CreateNote(note *models.Note) error
func (*NoteService) DeleteNote ¶
func (s *NoteService) DeleteNote(note *models.Note) error
func (*NoteService) GetAllNotes ¶
func (s *NoteService) GetAllNotes(userID uint) ([]models.Note, error)
func (*NoteService) GetNoteByID ¶
func (*NoteService) UpdateNote ¶
func (s *NoteService) UpdateNote(note *models.Note) error
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo *repository.UserRepository) *UserService
func (*UserService) GenerateAndSendSMSToken ¶
func (s *UserService) GenerateAndSendSMSToken(phoneNumber string) (string, error)
func (*UserService) ValidateSMSToken ¶
func (s *UserService) ValidateSMSToken(phoneNumber, token string) error
func (*UserService) ValidateTokenAndLogin ¶
func (s *UserService) ValidateTokenAndLogin(phoneNumber, smsToken string) (string, error)
Click to show internal directories.
Click to hide internal directories.