package
0.0.0-20200325015310-76b4d0c603ab
Repository: https://github.com/sun-wenming/gin-auth.git
Documentation: pkg.go.dev
# Functions
AesDecrypt Aes 解密.
AesEncrypt Aes 加密.
Compare 比较密码.
EncodeMD5 生成 MD5.
Encrypt 加密 inputPassword 未加密的密码.
ErrNew returns an error that formats as the given text.
ErrNew returns an error that formats as the given text.
ErrNew returns an error that formats as the given text.
ErrNew returns an error that formats as the given text.
GenerateToken 生成 token.
GetPage 保证了各接口的page处理是一致的.
GetRandomCode 随机六位验证码.
GetRandomSalt return len=12 salt.
GetRandomString 生成随机字符串.
GetTokenLoginName 根据 token 获取用户登录,用于去数据库获取用户id.
GetTrans 获取翻译.
GetValidate GetValidator.
ParseToken 解析 token.
ParseToken2 解析 token.
No description provided by the author
No description provided by the author
ValidEmail 验证邮箱.
# Interfaces
Error 带有错误码 与 错误信息的错误类.