|
|
@ -105,8 +105,8 @@ func (v *validate) ReportError(field interface{}, fieldName, structFieldName, ta |
|
|
|
structFieldName = fieldName |
|
|
|
structFieldName = fieldName |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ns := append(v.slNs, fieldName...) |
|
|
|
v.slNs = append(v.slNs, fieldName...) |
|
|
|
nsStruct := append(v.slStructNs, structFieldName...) |
|
|
|
v.slStructNs = append(v.slStructNs, structFieldName...) |
|
|
|
|
|
|
|
|
|
|
|
switch kind { |
|
|
|
switch kind { |
|
|
|
case reflect.Invalid: |
|
|
|
case reflect.Invalid: |
|
|
@ -115,8 +115,8 @@ func (v *validate) ReportError(field interface{}, fieldName, structFieldName, ta |
|
|
|
&fieldError{ |
|
|
|
&fieldError{ |
|
|
|
tag: tag, |
|
|
|
tag: tag, |
|
|
|
actualTag: tag, |
|
|
|
actualTag: tag, |
|
|
|
ns: string(ns), |
|
|
|
ns: string(v.slNs), |
|
|
|
structNs: string(nsStruct), |
|
|
|
structNs: string(v.slStructNs), |
|
|
|
field: fieldName, |
|
|
|
field: fieldName, |
|
|
|
structField: structFieldName, |
|
|
|
structField: structFieldName, |
|
|
|
// param: "",
|
|
|
|
// param: "",
|
|
|
@ -130,8 +130,8 @@ func (v *validate) ReportError(field interface{}, fieldName, structFieldName, ta |
|
|
|
&fieldError{ |
|
|
|
&fieldError{ |
|
|
|
tag: tag, |
|
|
|
tag: tag, |
|
|
|
actualTag: tag, |
|
|
|
actualTag: tag, |
|
|
|
ns: string(ns), |
|
|
|
ns: string(v.slNs), |
|
|
|
structNs: string(nsStruct), |
|
|
|
structNs: string(v.slStructNs), |
|
|
|
field: fieldName, |
|
|
|
field: fieldName, |
|
|
|
structField: structFieldName, |
|
|
|
structField: structFieldName, |
|
|
|
value: fv.Interface(), |
|
|
|
value: fv.Interface(), |
|
|
|