service

package
v0.0.0-...-2ecb562 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccessToken

func CreateAccessToken()

func NewAuthServiceImpl

func NewAuthServiceImpl(userRepository repository.UserRepository, validator *validator.Validate) serviceinterface.AuthService

func NewUserServiceImpl

func NewUserServiceImpl(userRepository repository.UserRepository, validate *validator.Validate) serviceinterface.UserService

func SendMail

func SendMail(to []string, message []byte)

func VerifyAccessTokenAndSendMail

func VerifyAccessTokenAndSendMail()

Types

type AuthServiceImpl

type AuthServiceImpl struct {
	UserRepository repository.UserRepository
	Validator      *validator.Validate
}

func (*AuthServiceImpl) Login

func (*AuthServiceImpl) Login(login request.LoginRequest)

Login implements serviceinterface.AuthService.

func (*AuthServiceImpl) Signup

func (*AuthServiceImpl) Signup(signup request.SignupRequest)

Signup implements serviceinterface.AuthService.

type UserServiceImpl

type UserServiceImpl struct {
	UserRepository repository.UserRepository
	Validate       *validator.Validate
}

func (*UserServiceImpl) Me

func (u *UserServiceImpl) Me(userId int) response.UserResponse

Me implements serviceinterface.UserService.

func (*UserServiceImpl) UpdateProfile

func (u *UserServiceImpl) UpdateProfile(users request.UpdateUserRequest)

UpdateProfile implements serviceinterface.UserService.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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