This commit is contained in:
2026-04-28 17:15:39 +08:00
parent 3610f489f4
commit 07b97bc514
2 changed files with 0 additions and 6 deletions
@@ -51,14 +51,10 @@ func Md5Str(str string) string {
return hashString2 return hashString2
} }
func IsExpired(expireTime time.Time) bool { func IsExpired(expireTime time.Time) bool {
return expireTime.Before(time.Now()) return expireTime.Before(time.Now())
} }
// 判断邮箱是否合法 // 判断邮箱是否合法
func IsEmailValid(email string) bool { func IsEmailValid(email string) bool {
// 正则表达式(覆盖 99% 常见邮箱格式) // 正则表达式(覆盖 99% 常见邮箱格式)
-2
View File
@@ -1,3 +1 @@
package models package models
// 仓库模块所有结构定义在 routers/apiWarehouse.go