Documentation ¶
Index ¶
- func CacheKey(key string, keys ...string) string
- func ExtractValidCodes(no string) []string
- func FmtSearchDate(searchAt string) []string
- func GenAccount(ps ...string) string
- func IsValidDateTime(value string) bool
- func LoginAuthTokenKey(uid uint, token string) string
- func SafeLoginCacheKey(key string, keys ...string) string
- func SafeSecretCacheKey(key string, keys ...string) string
- func SmsCaptchaCacheKey(key string, keys ...string) string
- func TokenCacheKey(token string, subjects ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractValidCodes ¶ added in v1.0.5
ExtractValidCodes 验证并过滤有效编号
func FmtSearchDate ¶ added in v1.0.5
FmtSearchDate 格式化搜索时间
func IsValidDateTime ¶ added in v1.0.5
IsValidDateTime 检测是否时间 Example: IsValidDateTime(`2006-01-01`) true IsValidDateTime(`2006-01-01 12:00:00`) true IsValidDateTime(`2006/01/01 12:00:00`) true IsValidDateTime(`2006.01.01 12:00:00`) true
func LoginAuthTokenKey ¶
LoginAuthTokenKey 登录授权TokenKEY
func SafeLoginCacheKey ¶
SafeLoginCacheKey 账户登录安全密钥KEY
func SafeSecretCacheKey ¶
SafeSecretCacheKey 安全密钥缓存KEY
func SmsCaptchaCacheKey ¶
SmsCaptchaCacheKey 短信验证码缓存KEY
func TokenCacheKey ¶
TokenCacheKey Token 缓存KEY
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.