- fix bug when not use Unmarshal2Map correctly

This commit is contained in:
gazebo
2019-01-31 11:58:15 +08:00
parent b6f7921b76
commit 7a5326a1dc
4 changed files with 18 additions and 13 deletions

View File

@@ -21,6 +21,7 @@ func NormalMakeMapByStructObject(mapData map[string]interface{}, obj interface{}
return retVal
}
// 此函数要求mapData中的数据类型是完全正确的可利用函数utils.Unmarshal2Map比如整数浮点不能为通用的Number型
func StrictMakeMapByStructObject(mapData map[string]interface{}, obj interface{}, userName string) (retVal map[string]interface{}) {
retVal, _ = IDCULDFilterMapByStructObject(mapData, obj, true)
return retVal