mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 13:01:02 +00:00
Add function to set validation default messages
This commit is contained in:
@ -41,7 +41,7 @@ Direct Use:
|
||||
}
|
||||
}
|
||||
// or use like this
|
||||
if v := valid.Max(u.Age, 140); !v.Ok {
|
||||
if v := valid.Max(u.Age, 140, "ageMax"); !v.Ok {
|
||||
log.Println(v.Error.Key, v.Error.Message)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user