|
@@ -148,16 +148,18 @@ func fieldVal(val reflect.Value, fieldName string, files RequestFiles, names ...
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if !field.IsValid() {
|
|
if !field.IsValid() {
|
|
- log.Println("invalid")
|
|
|
|
- log.Printf("%T\n", val.Interface())
|
|
|
|
- if f, check := val.Interface().(IFieldChecker); check {
|
|
|
|
- log.Println("ifieldchecker")
|
|
|
|
- if check := f.RestFieldCheck(fieldName); check {
|
|
|
|
- return true
|
|
|
|
|
|
+ /*
|
|
|
|
+ log.Println("invalid")
|
|
|
|
+ log.Printf("%T\n", val.Interface())
|
|
|
|
+ if f, check := val.Interface().(IFieldChecker); check {
|
|
|
|
+ log.Println("ifieldchecker")
|
|
|
|
+ if check := f.RestFieldCheck(fieldName); check {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- err = ErrorFiled(rField.Name, "field is not found")
|
|
|
|
- return false
|
|
|
|
|
|
+ err = ErrorFiled(rField.Name, "field is not found")
|
|
|
|
+ */
|
|
|
|
+ return true
|
|
}
|
|
}
|
|
var fVal reflect.Value
|
|
var fVal reflect.Value
|
|
if fVal, err = fieldVal(
|
|
if fVal, err = fieldVal(
|