@@ -7,6 +7,7 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
+ "gorm.io/gorm"
"image"
"image/png"
"math"
@@ -201,7 +202,8 @@ func StrListToString(strList []string) (str string) {
// 数据没有记录
func ErrNoRow() string {
- return "<QuerySeter> no row found"
+ return gorm.ErrRecordNotFound.Error()
+ //return "<QuerySeter> no row found"
}
// 校验邮箱格式