Documentation ¶
Index ¶
- type UserHandler
- func (h *UserHandler) GetEmailUserDetails(ctx context.Context, email string, code string) (*SecurityModel.UserDetails, error)
- func (h *UserHandler) GetMobileUserDetails(ctx context.Context, mobile string, code string) (*SecurityModel.UserDetails, error)
- func (h *UserHandler) GetSocialUserDetails(ctx context.Context, socialChannelId string, code string) (*SecurityModel.UserDetails, error)
- func (h *UserHandler) GetUserDetails(ctx context.Context, username, password string) (*SecurityModel.UserDetails, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserHandler ¶
type UserHandler struct { *gorm.DB `inject:"database"` MobileValidator *SmsCode.SmsCodeValidator `inject:"smsCodeValidator"` EmailValidator *EmailCode.EmailCodeValidator `inject:"emailCodeValidator"` SocialUserService *service.SocialUserService `inject:"socialUserService"` UserService *service.UserService `inject:"userService"` }
func (*UserHandler) GetEmailUserDetails ¶
func (h *UserHandler) GetEmailUserDetails(ctx context.Context, email string, code string) (*SecurityModel.UserDetails, error)
func (*UserHandler) GetMobileUserDetails ¶
func (h *UserHandler) GetMobileUserDetails(ctx context.Context, mobile string, code string) (*SecurityModel.UserDetails, error)
func (*UserHandler) GetSocialUserDetails ¶
func (h *UserHandler) GetSocialUserDetails(ctx context.Context, socialChannelId string, code string) (*SecurityModel.UserDetails, error)
func (*UserHandler) GetUserDetails ¶
func (h *UserHandler) GetUserDetails(ctx context.Context, username, password string) (*SecurityModel.UserDetails, error)
Click to show internal directories.
Click to hide internal directories.