Documentation ¶
Index ¶
- func CreateAccessToken()
- func NewAuthServiceImpl(userRepository repository.UserRepository, validator *validator.Validate) serviceinterface.AuthService
- func NewUserServiceImpl(userRepository repository.UserRepository, validate *validator.Validate) serviceinterface.UserService
- func SendMail(to []string, message []byte)
- func VerifyAccessTokenAndSendMail()
- type AuthServiceImpl
- type UserServiceImpl
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 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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.