up
This commit is contained in:
@@ -51,14 +51,10 @@ func Md5Str(str string) string {
|
||||
return hashString2
|
||||
}
|
||||
|
||||
|
||||
|
||||
func IsExpired(expireTime time.Time) bool {
|
||||
return expireTime.Before(time.Now())
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 判断邮箱是否合法
|
||||
func IsEmailValid(email string) bool {
|
||||
// 正则表达式(覆盖 99% 常见邮箱格式)
|
||||
@@ -1,3 +1 @@
|
||||
package models
|
||||
|
||||
// 仓库模块所有结构定义在 routers/apiWarehouse.go
|
||||
|
||||
Reference in New Issue
Block a user