Documentation ¶
Index ¶
- func ExtractToken(ctx *gin.Context) string
- func ExtractTokenID(c *gin.Context) (uint, error)
- func GenerateTokenPair(userId uint) (string, string, error)
- func SendEmail(toEmail, subject, token string, data serializers.OTPSerializer) error
- func TokenValid(ctx *gin.Context) error
- type IRoleService
- type IUserServiceInterface
- type RoleService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTokenID ¶
ExtractTokenID Extract User Id from token.
func SendEmail ¶
func SendEmail(toEmail, subject, token string, data serializers.OTPSerializer) error
Types ¶
type IRoleService ¶
type IRoleService interface { CreateRoleService(role *serializers.Role) (bool, error) GetAllRolesService(limit string, offset string) (int64, []serializers.RoleResponse) }
type IUserServiceInterface ¶
type RoleService ¶
type RoleService struct{}
func (*RoleService) CreateRoleService ¶
func (r *RoleService) CreateRoleService(role *serializers.Role) (bool, error)
CreateRoleService for creating Service
func (*RoleService) GetAllRolesService ¶
func (r *RoleService) GetAllRolesService(limit string, offset string) (int64, []serializers.RoleResponse)
GetAllRolesService GetAllRoles service
type UserService ¶
type UserService struct{}
func (*UserService) CreateUserService ¶
func (u *UserService) CreateUserService(user serializers.RegisterSerializer) (bool, error)
func (*UserService) VerifyCredentialService ¶
func (*UserService) VerifyEmailService ¶
func (u *UserService) VerifyEmailService(token string) error
Click to show internal directories.
Click to hide internal directories.