增加反射结果的缓存
This commit is contained in:
parent
cd9bc4aadb
commit
8ead62c058
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user