diff --git a/reflect.go b/reflect.go index aa11abe..4d0daee 100644 --- a/reflect.go +++ b/reflect.go @@ -79,6 +79,7 @@ func (rt *ReflectType) Do(dataFlag string, data interface{}) *StructInfo { rt.fillMappingRule(field, reflectType.Field(idx).Tag.Get(MappingTag)) res.StructFieldList = append(res.StructFieldList, field) } + rt.cacheTable[dataFlag] = res return res }