mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 11:18:02 +08:00
improve package gvalid
This commit is contained in:
parent
cea6e4c3d9
commit
bbc43520fb
@ -63,7 +63,7 @@ func (v *Validator) Run(ctx context.Context) Error {
|
||||
isStructValidation := false
|
||||
if v.rules == nil {
|
||||
isStructValidation = true
|
||||
} else if v.rules != nil && (utils.IsMap(v.rules) || utils.IsSlice(v.rules)) {
|
||||
} else if utils.IsMap(v.rules) || utils.IsSlice(v.rules) {
|
||||
isStructValidation = true
|
||||
}
|
||||
if isStructValidation {
|
||||
|
Loading…
Reference in New Issue
Block a user