services

package
v0.0.0-...-9a10c2a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: Apache-2.0 Imports: 6 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 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 (s *NoteService) GetNoteByID(note models.Note) (*models.Note, error)

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)

Jump to

Keyboard shortcuts

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